Viewing 15 posts - 9,691 through 9,705 (of 18,926 total)
Why can't you hardcode the dbname in the script?
USE DbName
GO
IF EXISTS... DROP VIEW
GO
CREATE VIEW...
GO
Any other option will involve creating a file on the fly with the correct db name, directly...
July 6, 2007 at 11:44 am
Hmm, looks like the dynamic sql doesn't work in this context.
In which context do you need to run this script?
July 6, 2007 at 11:15 am
Check out Frank Kalis site. He has done extensive testing on this subject and my memory seems to want to confirm that your memory is right
July 6, 2007 at 10:30 am
You can't dynamically change the in the connection like that. You have to use dynamic sql (including the following code) to make this work.
If you need to run this cod...
July 6, 2007 at 10:29 am
Nice idea Steve, a trip in space would be a great space for any geek
.
July 6, 2007 at 10:11 am
Definitly. My idea will be the best approach in this context.
You can use fileexists as the best approach in the case where you only want to check if 1 file...
July 6, 2007 at 10:09 am
How about a free plane ticket for next year (or rebate, as the ticket prrice is drstically different from one person to the next)?
July 5, 2007 at 5:38 pm
I'd do it the other way around. List all files that are in the directory(ies) and send this into a table. Then you can do a left join to find...
July 5, 2007 at 5:05 pm
Not likely, but it would potentially avoid many others!
July 5, 2007 at 4:48 pm
2005.
Check out the link in the aswer for more details of all the version names of every MS products ever written.
July 5, 2007 at 8:31 am
Nice to know. I'm glad we're finally moving to 2k5 here at my current client. It's gonna be a lot of fun to master this new tool
July 4, 2007 at 7:19 pm
Agreed, your ego is telling you to do this. However your ego seems to be up to date with technology and it would be nice for the site to be...
July 4, 2007 at 7:16 pm
Viewing 15 posts - 9,691 through 9,705 (of 18,926 total)