Elek Posted May 3, 2009 at 05:35 PM Report #261026 Posted May 3, 2009 at 05:35 PM Olá boa tarde, Alguém me sabe dizer como é que eu executo as stored procedures através do vba? Bem e já agora como faço a ligação aos endereços da base de dados em sql server. Obrigada
jpaulino Posted May 4, 2009 at 09:20 PM Report #261399 Posted May 4, 2009 at 09:20 PM Olá, Podes fazer algo do género usando ADO Set cnn = New ADODB.Connection sConnString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;" & _ "Persist Security Info=False;" & _ "Initial Catalog=databasename;" & _ "Data Source=servername" With cnn .Open sConnString .up_UpdateSpreadsheetData .Range("A1").Value, .Range("B1").Value, .Range("C1").Value End With Podes também ver estes exemplos que explicam mais em detalhe: http://www.itjungle.com/mgo/mgo102203-story01.html http://www.itjungle.com/mgo/mgo081503-story02.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now