Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
AddExtender("wwodb34i.dll") request=4;ADD SYSTEM DSN driver="SQL Server";case sensitive ;Modify next like with connection specifics attrs="DSN=sctestadmin|DESCRIPTION=sctestadmin|SERVER=Ind1Sql06";pipe delimited displayflag=@FALSE ret=qConfigData(request, driver, attrs, displayflag) ;Displays error if DSN not created If ret== @FALSE Message("qConfigData failed", qConfigError()) Exit EndIf ExitI need to know what I can add to automatically configure the port to 1433.
Maybe try this:
attrs="DSN=sctestadmin|DESCRIPTION=sctestadmin|SERVER=xxx.xxx.xxx.xxx|Address=xxx.xxx.xxx.xxx,1433|Network=DBMSSOCN|Database=myDatabaseName|Uid=myUsername|Pwd=myPassword";pipe delimitedWhere:
RegSetValue(@REGMACHINE, "Software\Microsoft\MSSQLServer\Client\ConnectTo[%servername%]", "DBMSSOCN,%servername%,1433")
Article ID: W16836
File Created: 2007:07:03:14:26:30
Last Updated: 2007:07:03:14:26:30