Viewing 15 posts - 24,286 through 24,300 (of 26,490 total)
MrBaseball34 (9/8/2008)
I *know* what was meant concerning that part of the reply.What I was referring to was to show me how to do it without the cursor,
I need the DDL...
September 8, 2008 at 3:39 pm
bitbucket (9/8/2008)
Not having the DDL or sample data for the tables, I don't have the enough to work with to see what could be done.
she means what...
September 8, 2008 at 3:31 pm
Still, I think this could be done without a cursor. From the logic in the code provided, I can't see any reason that requires a cursor. A set-based...
September 8, 2008 at 12:28 pm
Could you provide the DDL for the tables (CREATE TABLE statements, if it is hugh just the key fields used in the query plus any indexed fields), some sample data...
September 8, 2008 at 11:19 am
Just a guess, but if I remember correctly that sounds like a permission error or the directory you are trying to access does not exist.
😎
September 8, 2008 at 10:05 am
Also, unless you have space constraints, I would not backup directly to a network share. Any network issues will cause your backup to fail. I'd backup to a...
September 8, 2008 at 9:45 am
Okay, one last try. I found another place that required a change. I also copied the generated sql to a seperate window in SSMS and checked the syntax,...
September 8, 2008 at 9:40 am
I found one more error when I rechecked my code. Try this:
declare @name nvarchar(200)
declare @month nvarchar(100)
declare @year nvarchar(100)
declare @filename nvarchar(900)
set @filename = N'D:\Data\'+@name+ '_Data.MDF'
set @month = month(convert(nvarchar(16),getdate(),112))
set @year =...
September 8, 2008 at 9:29 am
You had some issues with your single quotes ('). try the following code:
declare @name nvarchar(200)
declare @month nvarchar(100)
declare @year nvarchar(100)
declare @filename nvarchar(900)
set @filename = N'D:\Data\'+@name+ '_Data.MDF'
set @month = month(convert(nvarchar(16),getdate(),112))
set @year...
September 8, 2008 at 9:27 am
Basic response, it depends. You really need to look at the requirements of each database/application. It may make sense to have a mission critical database/application on its own...
September 8, 2008 at 9:21 am
I would also guess it depends on what you are doing inside the trigger as well. As I stated earlier, when I did write triggers (not that I don't...
September 5, 2008 at 12:32 pm
Curious, what does the query in the sproc look like?
😎
September 5, 2008 at 12:22 pm
If you have created the table for development, why drop and recreate it everytime? I'd change the create to truncate the existing table.
😎
September 5, 2008 at 12:02 pm
Yes, changing the recovery model from full to simple will truncate the log allowing you to shrink the log. Immediately after shrinking the log, change recovery model back to...
September 5, 2008 at 11:00 am
icocks (9/5/2008)
September 5, 2008 at 8:30 am
Viewing 15 posts - 24,286 through 24,300 (of 26,490 total)