Viewing 15 posts - 3,541 through 3,555 (of 9,643 total)
You can actually provide a criteria to sp_MSForEachTable. Like this:
sys.sp_MSforeachtable
@command1 = 'Select * from ?', -- nvarchar(2000)
@whereand = 'and O.name not like ''%sys%'''
You need the alias as the...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 4:17 pm
I can't even get the value, '2009-12-17 10:45:52.5900000', to CAST to datetime, I get this error:
Msg 241, Level 16, State 1, Line 12
Conversion failed when converting date and/or time...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 4:07 pm
You could setup a second named instance on the server that would have the correct collation.
If you have access to the code you could modify the code to use the...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 3:58 pm
Have you checked the SQL Server and Windows error logs for errors?
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 3:57 pm
Jason's query is just off. Andrew's is right. At least based on the test data provided.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 3:51 pm
Wow, major can of worms opened here. As GSquared mentioned, on this site we are mostly DBA's so we lean toward stored procedures. Paul Neilsen has an excellent...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 3:12 pm
The user interface restricts multiple cost changes. So this trigger works fine
And 6 months from now you can't make changes because somehow 2 rows are updated. Always code triggers...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 3:02 pm
Please don't duplicate post it just fragments replies.
Here's the other post where I posted a suggestion.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 2:56 pm
You could do something like what Tim Mitchell suggests in this blog post. Of course first you need to load the file names from the log table.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 2:52 pm
Unfortunately I don't know of anywhere that SQL Server collects that information. For future reference the Schema Changes Report gets its data from the Default Trace. You can...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 18, 2009 at 2:49 pm
CirquedeSQLeil (12/17/2009)
About half of the Avatars show a broken image icon in lieu of my...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 17, 2009 at 4:47 pm
I can't duplicate the issue on a 2005 box. Perhaps there is an issue with 2000 that was fixed in 2005. The only thing I can think of...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 17, 2009 at 2:21 pm
It should match in either case because the parameter itself is NVARCHAR so it should do an implicit conversion.
Here's a test I have done (I'm using 2005 so could be...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 17, 2009 at 1:54 pm
This doesn't seem like a permissions issue, per se, as the procedure executes without error.
I'd recommend checking to see if the file exists in SSIS. You can use a...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 17, 2009 at 1:40 pm
Lynn Pettis (12/17/2009)
Jack Corbett (12/17/2009)
Lynn Pettis (12/17/2009)
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
December 17, 2009 at 11:59 am
Viewing 15 posts - 3,541 through 3,555 (of 9,643 total)