XMLBulkLoad Works with integrated security, fails with SQL Server security

XMLBulkLoad Works with integrated security, fails with SQL Server security

Post by Paul Ker » Fri, 06 Sep 2002 18:11:49



I am running SQLXMLBulk load, but I do not always know wheteher the server
will be using integrated security or just SQL Security.  I set up a routine
to allow for this, but I can not connect with the sql security connection
string, only with the integrated security.  Has anyone else seen this?  I am
running SQLXML3 SP1, the connection string routines are below.

Thanks!

Paul

GambaDBServer = ConfigurationSettings.AppSettings("ServerName")

GambaDB = ConfigurationSettings.AppSettings("DatabaseName")

IntSecurity = ConfigurationSettings.AppSettings("IntegratedSecurity")

If IntSecurity = "Y" Then 'Check to see if we are using integrated security

GambaConnString = "provider=SQLOLEDB.1;data source=" & GambaDBServer

GambaConnString = GambaConnString & ";database=" & GambaDB &
";Trusted_Connection=yes"

Else ' If not usinfg integrated security set sql user and password
information

UserName = ConfigurationSettings.AppSettings("UserName")

Password = ConfigurationSettings.AppSettings("Password")

GambaConnString = "provider=SQLOLEDB.1;data source=" & GambaDBServer

GambaConnString = GambaConnString & ";database=" & GambaDB

GambaConnString = GambaConnString & ";uid =" & UserName & ";pwd=" & Password

End If

objBL.ConnectionString = GambaConnString

 
 
 

XMLBulkLoad Works with integrated security, fails with SQL Server security

Post by Bryant Like » Sun, 08 Sep 2002 03:00:38



Quote:> I am running SQLXMLBulk load, but I do not always know wheteher the server
> will be using integrated security or just SQL Security.  I set up a
routine
> to allow for this, but I can not connect with the sql security connection
> string, only with the integrated security.  Has anyone else seen this?  I
am
> running SQLXML3 SP1, the connection string routines are below.

Is your SQL Server running in mixed security mode or windows only mode?

--
Bryant