Viewing 15 posts - 5,551 through 5,565 (of 8,416 total)
Jeff Moden (3/10/2010)
Well done!
Thanks. I like to be helpful 😉
March 10, 2010 at 11:21 pm
Kuldip Rindani (3/10/2010)
Below link can be helpful to you..
I doubt it, since the problem is already solved. It might help someone else though, so thanks anyway.
March 10, 2010 at 11:20 pm
Jeff Moden (3/10/2010)
March 10, 2010 at 11:18 pm
Views do not contain any data unless indexed, so the question of the order of data in a view only applies to indexed views - which are logically ordered by...
March 10, 2010 at 11:02 pm
No need for a Tally table here:
Setup
DECLARE @SortTable
TABLE (
id ...
March 10, 2010 at 10:48 pm
Managing ntext, text, and image data (SQL Server 2000)
I am assuming you are using SQL Server 2000, since these data types are deprecated in 2005 onwards in favour of the...
March 10, 2010 at 9:50 pm
One option is to use the BULK INSERT statement.
Example:
DECLARE @FilePath NVARCHAR(126),
@sql NVARCHAR(MAX);
-- Construct the file name for today ...
March 10, 2010 at 9:47 pm
Bob,
I am going to contribute the following code, not as a solution, but as a way to help you describe what you want.
How does the following not meet your need?
DECLARE...
March 10, 2010 at 9:29 pm
Summary: the way you are currently doing it is probably close to the worst possible. The more details you give, the more specific and useful and answer you will...
March 10, 2010 at 9:00 pm
Test setup
DECLARE @t
TABLE (
item_no INTEGER NOT NULL,
stock1 INTEGER NOT NULL,
...
March 10, 2010 at 8:58 pm
To illustrate Jeff's point:
DECLARE @Example
TABLE (
field1 VARCHAR(30) NULL,
field2 VARCHAR(30) NULL,
...
March 10, 2010 at 8:49 pm
SELECT C.CustomerID,
Loc = ISNULL(CONVERT(VARCHAR(50), CL.Loc), 'Do not care')
FROM @Cust C
LEFT
JOIN @CustLoc CL
...
March 10, 2010 at 8:39 pm
A couple of points about string-splitting:
1. It is normally best to avoid storing the data this way in the first place.
2. The fastest solutions use a .NET implementation...
March 10, 2010 at 8:25 pm
Would a computed column work better?
CREATE TABLE tempdb.dbo.ApInsp (CompDttm DATETIME NOT NULL, ExpDttm AS DATEADD(DAY, 180, CompDttm));
INSERT tempdb.dbo.ApInsp (CompDttm) VALUES ('20090314');
SELECT CompDttm, ExpDttm FROM tempdb.dbo.ApInsp;
DROP ...
March 10, 2010 at 8:15 pm
Chris Morris-439714 (3/10/2010)
March 10, 2010 at 7:50 pm
Viewing 15 posts - 5,551 through 5,565 (of 8,416 total)