Viewing 15 posts - 9,691 through 9,705 (of 13,469 total)
just hazarding a guess, but since this is running on Express, could the AUTOCLOSE setting of the database be causing the disconnect of the client connections, when SQL Server decides...
April 15, 2010 at 11:02 am
it's the full syntax for a constraint instead of the shortcut for a foreign key:
ALTER TABLE dbo.a
ADD CONSTRAINT FK_MyForeignKey FOREIGN KEY (id) REFERENCES dbo.b(id);
to rename a constraint that has a...
April 15, 2010 at 9:20 am
I found a lot of stuff on Database Mirroring here:
database mirroring sql server 2008
general questions and information gathering stuff like that is what google is awesome at; the forums here...
April 15, 2010 at 7:09 am
Paul Clark-418949 (4/15/2010)
PICNIC (Problem In Chair Not In Computer)
hehe in my shop we call that a problem with the CKI (Chair to Keyboard Interface);
it can often be fixed witht...
April 15, 2010 at 6:41 am
I'm a little weak on your requirement, so help me clarify it:
you have an openDate and a closedDate.
I thought the closedDate should be x business Days greater than the openDate;...
April 15, 2010 at 6:26 am
yes, the plan could be cached; it's not guaranteed.
I have an older book that explains it in some detail...the answer is if SQL thinks there is a high cost for...
April 14, 2010 at 9:25 pm
without the two tables (tblSale and tbl1 ) and some sample data, i can only make a guess that is syntactically correct;
my assumption in my example is that the Closeddate...
April 14, 2010 at 11:38 am
John Paul-702936 (4/14/2010)
SIMPLE
ouch.
assuming deletion of specific data, then the data is lost. there is no way to recover deleted data when in SIMPLE mode;
the typical thing you'd have to do...
April 14, 2010 at 11:15 am
that's pretty dumb. if you don't want them to see it, don't give them access to the report at all, period. if they are seeing "too much", tweak the report...
April 14, 2010 at 10:37 am
here is a link to one that i built after a few posts on the subject here on SSC; it's got all the code to insert all the known holidays...
April 14, 2010 at 10:14 am
oops reread it and there are multiples;
this seems to get you 98% there:
--now get the ID's using a tally table
declare
@pre varchar(10),
@post varchar(10),
@pr int,
@po int,
@st int
set @pre = 'TBM'
set @post...
April 14, 2010 at 10:05 am
if the TBM number is always 6 characters and it always starts the string, you could simply take the LEFT(col,6) of the string
SELECT LEFT(String,6) from #Test
if it could exist anywhere...
April 14, 2010 at 9:59 am
i have this saved in my snippets to get the next business day:
this assumes you have a Calendar table with some specific columns, since business days are also dependant on...
April 14, 2010 at 9:46 am
truncating a table frees up space WITHIN the database, so more data can be added without expanding the database. the db assumes that you made room for more data; if...
April 14, 2010 at 9:38 am
it seems like you want a 1 to N solution, not a running total(since you explicitly gave the 1-3-5 example of non consecutive values)
for any actual solution, i would end...
April 14, 2010 at 9:06 am
Viewing 15 posts - 9,691 through 9,705 (of 13,469 total)