Viewing 15 posts - 166 through 180 (of 183 total)
Yet again, I think I've either met...
September 16, 2004 at 4:46 am
Here you go, two functions - the comments should give you enough info to use them, or use the concept in another application. The first function returns a datetime corresponding to...
May 20, 2004 at 3:54 am
SQL Server does not format results to the left or right - this is dependant on what you're displaying the results in. For example, when Query Analyzer returns the results...
April 29, 2004 at 3:09 am
I assume you mean no unique identifier and hence cannot differentiate between rows?
What about extracting the data to a temp table, eliminating duplicates in the SELECT process (i.e. SELECT DISTINCT),...
April 23, 2004 at 9:33 am
Can you pass this list as a comma-delimted string e.g. "1,2,3,4,5,6,7"?
If so, you could use
CREATE PROC dbo.spProc
@inputstring varchar(8000)
AS
EXEC('SELECT name FROM table WHERE id IN('+@inputstring+')')
GO
If...
April 23, 2004 at 8:03 am
This depends on what columns form the primary key (all have "ID" in so this is ambiguous).
If all 3 columns form the primary key, then AH's won't necessarily work because...
April 22, 2004 at 6:58 am
Can you get a more detailed error message by right-clicking the job in EM, selecting "View job history...", check "Show step details" and selecting the step that failed.
This should display...
April 21, 2004 at 5:00 am
I have never used 121 format but according to BOL it is format:
yyyy-mm-dd hh:mi:ss.mmm(24h)
This obviously includes time. You say in your first post "in my application I...
April 20, 2004 at 4:42 am
AFAIK that should definitely not happen - especially between two databases on the same server. I use a similar user for my web apps to access their databases and this...
April 20, 2004 at 4:01 am
Either enforce it in the front-end app or (assuming this is not an option) use a trigger.
Using the trigger you can alter the data from the inserted table to conform...
April 20, 2004 at 3:39 am
Apparently not. You can do pretty much everything but proper case in SQL Server.
Does it need to be in proper case in the database or can you convert to proper...
April 20, 2004 at 3:26 am
My SQL Servers are configured to DD/MM/YYYY format yet still interpret dates as MM/DD/YYYY when passed as strings and converted to datetime.
See my post RE: Date Search for an...
April 20, 2004 at 2:48 am
As far as I'm aware, from a storage point of view, no it doesn't really matter. SQL Server will not pad out a varchar column and hence it will only...
April 19, 2004 at 3:56 am
@@datefirst returns the current setting for first day of the week, as set by SET DATEFIRST. Values are 1 = Monday and so on through to...
April 8, 2004 at 8:25 am
I have written a function to check if a date value is a working day or not (used for an employee leave application, working out days absent, so should be...
April 8, 2004 at 6:41 am
Viewing 15 posts - 166 through 180 (of 183 total)