I am working on an app that scripts SQL 7 databases, tables, stored procedures, and views. Everything works great, but I would now like the app to check these scripts into VSS. Is there a way to program against VSS in this manner?
Printable View
I am working on an app that scripts SQL 7 databases, tables, stored procedures, and views. Everything works great, but I would now like the app to check these scripts into VSS. Is there a way to program against VSS in this manner?
Add a reference to your project by clicking on Projects >
References... > and then check "Microsoft SourceSafe 6.0 Type Library"
You can auto-login with - VSSDatabase.Open([SrcSafeIni As String], [Username As String], [Password As String])
Then add the files to SourceSafe - VSSItem.Add(Local As String, [Comment As String], [iFlags As Long])
As long as the project is already created and the files do not exist
you shouldnt have to do any more, depending upon what you are
trying to accomplish. Either way this should get you going.
Thanks, this was exactly what I was looking for. I looked in the references list but I was looking for Microsoft VISUAL Source safe. Thanks!