Viewing 15 posts - 31 through 45 (of 141 total)
In SQL 2008 you could use the time datatype (12:35:29. 1234567)
Prior to that I would use Datetime.
I would use a datatype that understands date / time and not varchar.
There are...
June 17, 2010 at 10:08 am
you can do something like this in your trigger.
Obviously this is risky as if the output of DBCC INPUTBUFFR changes your trigger will break.
DECLARE @ProgramName nvarchar(128)
DECLARE @Text nvarchar(4000)
SELECT @ProgramName =...
April 15, 2010 at 9:50 am
you can use a tally or number table to split the string and do your comparison against each position.
-- create a temp tally table for test and fill it with...
March 10, 2010 at 10:39 am
I like the bit on the territories table if all the territories are apples.
From what I read it sounded like terrirtories of level 2 were apples and other territories were...
July 22, 2009 at 1:30 pm
based on the information provided I like the solution that is in place if most of your searches are to retrieve territories that have the preference --Create a table that...
July 22, 2009 at 10:31 am
here is a quick sample I put together. I could probably come up with something more elegant after I think about it some more.
Depending on the amount of data you...
July 13, 2009 at 10:40 am
I have seen this strategy used before to help with merging disconnected datasets.
The reason they do not use the PK + 1 is probably because of the possibilty of inserting...
June 18, 2009 at 12:02 pm
Depending on your sql security strategy ...
1. they should be able to connect directly with windows authentication setting up the connection right within Crystal.
Setup the user in Security for the...
May 13, 2009 at 10:46 am
What he is saying is that if you have Table 1 ( PK int ) and Table 2 ( FK int )
Lets say for instance you want to delete a...
May 13, 2009 at 10:28 am
Distinct does not apply to a single column -- it applies to all of the columns being selected.
The data model may be suspect if you need to use distinct at...
April 21, 2009 at 10:05 am
First, I would not use this table structure.
I would have a users table, a group table, and a GroupUsers table.
Storing all of the user ids in one column is a...
April 2, 2009 at 1:59 pm
I do not know your table structure, but you can do something like the following.
--function to concatenate categories into comma seperated list by title
CREATE FUNCTION dbo.fn_GetCategoriesForTitle (@TitleId int )
RETURNS...
March 4, 2009 at 10:34 am
I would start by looking at activity monitor when the system is locked up.
Check for blocking transactions and see what host / application / statement is causing the issue.
This is...
March 4, 2009 at 10:23 am
Viewing 15 posts - 31 through 45 (of 141 total)