Viewing 3 posts - 1 through 3 (of 3 total)
Thank you.. Yes, you are right.
It works fine with SQL2005 express edition on localhost.
It cannot connect to SQL2000 whether it is on local or remote system.
is there anything...
June 4, 2014 at 5:36 pm
tried the same. (with master.sql in the same directory as .ps1 script)
It says
"You cannot call a method on a null-valued expression.
Line:16 / Char:18
+$ds = $server.Databases[$database].ExecuteWithResults("$(Echo $1.OpenText().ReadToEnd())")
+
+ CategoryInfo : InvalidOperation:...
June 3, 2014 at 5:16 pm
where do we need to keep this master.sql script file? same directory where the PowerShell script resides?
June 3, 2014 at 3:35 am
Viewing 3 posts - 1 through 3 (of 3 total)