Viewing 15 posts - 10,336 through 10,350 (of 13,461 total)
As Paul mentioned, you could add this kind of business logic in a procedure, a trigger or even using udf functions as a constraint...but...
wouldn't that logic prevent any member from...
November 6, 2009 at 6:26 am
why so complex a logic for your PK? maybe I'm missing the reason because of the way you abstracted it to pseudocode.
why won't a plain old tried and true identity...
November 5, 2009 at 8:07 pm
recovery time, as well as backup complexity play a big roll.
for example, to restore to a specific point in time, you need a FULL backup, and all the logs between...
November 5, 2009 at 12:26 pm
this is an important piece:
when you say
When we generate TransDATA it is taking minimum 23 hours
can you show us the SQL? is it a cursor going thru 45...
November 5, 2009 at 8:07 am
you need to make sure every part you concat together are cast as varchar(max); otherwise you hit an 8000 limit(or lower limit if your smallest var is smaller)
when you...
November 4, 2009 at 8:20 pm
details, details, details.
your making it hard on us! you've posted over a hundred times, so I can pretty much assume you've seen requests to provide CREATE TABLE and INSERT INTO...
November 4, 2009 at 12:10 pm
by using the CHARINDEX2 function below, which returns the nth position of a given string, this worked fine for me:
/*
Example:
SELECT dbo.CHARINDEX2('a', 'abbabba', 3)
returns the location of the third occurrence of...
November 4, 2009 at 10:51 am
good job on giving us the CREATE TABLE; you gave us sample data, but not in an easy-to-use format.
you'll see below, along with the INSERT INTO statements, we are able...
November 4, 2009 at 9:29 am
i'm guessing it's the wrong S?
@filename='\\VCDB02\j$\Microsoft SQL Server\MSSQL.2\MSSQL\Backup\Step_11_xapi_backup.BAK'
should that be
@filename='"\\VCDB02\j$\Microsoft SQL Server\MSSQL.2\MSSQL\Backup\Step_11_xapi_backup.BAK"'
note the path is wrapped in double quotes to allow file names with spaces?
November 4, 2009 at 8:23 am
as far as i know, if the path to the folder does not exist, the backup would fail.
if the path exists, the .BAK file would get created or overwritten...
November 4, 2009 at 8:18 am
don't do this in a trigger.
do it in a schedule job that occurs every X days, which would determine if the filegroup needs to be created yet or not....and if...
November 4, 2009 at 8:03 am
pink.thereisnoif (11/4/2009)
We have a database named 'Track' running on a 64 bit Sql Server 2005 enterprise edition.
Currently the Track DB occupies about 100G space, with 77G data, 16G index,...
November 4, 2009 at 7:55 am
not sure what you mean...inside a TSQL code block, you could use
print object_name(@@PROCID)
or do you mean show me all the sql statements that are currently running...
November 4, 2009 at 7:24 am
Bru Medishetty (11/3/2009)
November 3, 2009 at 7:51 pm
Viewing 15 posts - 10,336 through 10,350 (of 13,461 total)