Viewing 15 posts - 1,336 through 1,350 (of 1,468 total)
Dynamic cross-tab queries are dealt with expertly and in great detail in these two Jeff Moden articles:
November 17, 2016 at 8:15 am
deleted ... somehow my post was duplicated
November 16, 2016 at 11:56 am
comic_rage (11/16/2016)
the data is binded to a asp.net gridview.
Why on earth would you want to bind millions of rows of data to a gridview?
It's not humanly possible to read and...
November 16, 2016 at 11:53 am
comic_rage (11/16/2016)
I am measuring the time on SSMS.
How are you measuring this?
Is this the time to insert the data into another table?
or the time to allocate the data to a...
November 16, 2016 at 11:51 am
The way to add a calculated fields is like this
CREATE TABLE dbo.Table1 (
Col1 ...
, Col2 ...
, .....
, SearchCol AS ISNULL(Col50,...
November 16, 2016 at 11:10 am
Have you tried creating a non-clustered index on Col50.
November 16, 2016 at 10:43 am
This trigger should give you the desired results.
CREATE TRIGGER [dbo].[Update_ServiceNum]
ON [dbo].[Test]
AFTER INSERT
AS
BEGIN
WITH cteMaxServiceNum AS (
SELECT s.ProjectID, MaxServiceNum =...
November 16, 2016 at 4:47 am
This is a script that I use when I need to know how much space each table is using
SET NOCOUNT ON;
CREATE TABLE #temp (
...
November 10, 2016 at 11:37 pm
You need to wrap your serial/servicedate in another set of brackets
WHERE (
(t1.Serial = '00000000001' AND t1.Servicedate BETWEEN...
November 10, 2016 at 10:53 pm
Eirikur Eiriksson (11/3/2016)
DesNorton (11/3/2016)
November 3, 2016 at 3:18 am
Shredding xml is not exactly the best perfprming operation in SQL. Rather get the UI to shred the XML and pass you a TVP (table valued parameter).
If you need...
November 3, 2016 at 2:32 am
shorton2 (11/1/2016)
November 1, 2016 at 1:55 pm
shorton2 (11/1/2016)
November 1, 2016 at 1:34 pm
I tend to steer clear of the MERGE statement.
Below is a sample of doing it as separate INSERT/UPDATE statements.
--DROP TABLE #UDFTemp;
CREATE TABLE #UDFTemp (
JobNumber INT...
November 1, 2016 at 11:54 am
Viewing 15 posts - 1,336 through 1,350 (of 1,468 total)