Viewing 15 posts - 11,536 through 11,550 (of 13,469 total)
yes it's fixed...my original posts had only single line that stretched a million characters....Steve's all over it apparently.
February 23, 2009 at 12:17 pm
it sounds like if Field 2 is supposded to be a part of field 1, it should either be a calculated column instead, or have a check constraint.
create table #example(exampleId...
February 23, 2009 at 11:40 am
try this from my saved snippets::
it's a proc someone asked for so they coupd capture sp_who2 throughout the day:
CREATE PROCEDURE PR_CAPTURESP_WHO
AS
BEGIN
SET NOCOUNT ON
IF NOT EXISTS (SELECT...
February 23, 2009 at 11:11 am
i would simply create a view, rather than insert into a new table.
the view would always be correct, where the table would need to be updated every time table2 got...
February 23, 2009 at 9:09 am
thre's a difference between "log" files created by some application, and SQL's log files...i think dmc was thinking the log files you are talking about are SQL's.
if you have an...
February 23, 2009 at 9:02 am
if you declare a char(50), and put a single character in it, because of it's datatype it will add 49 spaces on the end.
that's the expected behavior.
Varchar(50), on the other...
February 23, 2009 at 5:31 am
omg Adi great minds think alike. paraphrased but verbatim answers
February 22, 2009 at 6:41 am
use a char1, and simply put a check constraint--
CREATE TABLE blah(
GENDER CHAR(1) NULL DEFAULT 'U' CHECK(GENDER IN('M','F','U') --U for undisclosed? some politically correct places require that nowadays
February 22, 2009 at 6:39 am
here's my suggestions:
1. update statistics:
2: can you show us the procedure? it might be the parameter sniffing issue(search here on SSC)
3: can you show us the execution plan? that shows...
February 22, 2009 at 5:21 am
Jeff it does still work; it depends on the commands you use; I've got an article coming out on a procedure i wrote that returns the DDL of any table;
your...
February 21, 2009 at 9:56 am
to get a procedure to run under the context of the database it is called from, doesn't it HAVE to be in the MASTER database and also at least start...
February 21, 2009 at 8:46 am
also from within SSMS:
Tools>>Options>>Text Editor
Expand "All Languages"
under the "Display" section, there is a semi-gray checkbox...uncheck and check to enforce line numbers for All languages and files.
Now line numbers appear on...
February 21, 2009 at 7:04 am
you could also use a logon trigger that checks the login against getdate() & some expiration date in a table, and use that logon trigger to prevent logging in.
February 21, 2009 at 6:31 am
both sqls in the union seem to be filtering on Application name, so If they ran alone, I would think they'd be fairly quick.
the union instead of union all could...
February 21, 2009 at 6:26 am
if you know the administrator password when you set up the machine, you can log in as that:
at the login screen which lists all the users, hit control-alt-delete twice...this will...
February 21, 2009 at 5:05 am
Viewing 15 posts - 11,536 through 11,550 (of 13,469 total)