Viewing 15 posts - 781 through 795 (of 1,241 total)
Using tables like a Calendar, Course, TimeOfDay table (separate from Calendar which implies a day as the primary key) or Period ...
you could employ a simple snapshot table that...
February 17, 2015 at 1:25 pm
Hi Jeff, from reading your thoughts I hope I understood all of the points you made. I drew out here a base and audit table as
CREATE Table table1
(
IDINT IDENTITY(1,1)...
February 17, 2015 at 12:31 pm
Sumit Rastogi (2/9/2015)
SELECT DATENAME(month, @MonthNumber)Example: SELECT DATENAME(month,1)
Result: January
Just to note, the DATENAME functions requires a date for the second argument. They way you have it you are expressing 1900-01-01. If...
February 11, 2015 at 7:08 pm
Eric M Russell (2/3/2015)
MMartin1 (2/3/2015)
February 3, 2015 at 9:25 pm
Koen Verbeeck (1/19/2015)
* Read the flat file like you normally would, i.e. with a flat file source. You can use a for each loop container with a...
February 3, 2015 at 1:29 pm
Maybe I missed it somewhere but it seems as though you are reporting from the same system you insert into. You generally want to build a warehouse to store your...
February 3, 2015 at 12:53 pm
The ".." represents the default schema for the security context accessing the data, without you having to type it. Let us say that I am logged in as loginA. Under...
January 28, 2015 at 7:21 pm
Could the 'safe' plan that incurs a higher cost be helped by updating statistics?
January 28, 2015 at 12:41 pm
Luis Cazares (1/27/2015)
SELECT columns_to_return
FROM dbo.XYZ
WHERE date_column > REPLACE( CONVERT(...
January 27, 2015 at 1:10 pm
I too like the column on the left and expression on the right. I also like to use the year argument to know I am interested in one year back,...
January 27, 2015 at 12:08 pm
I thought something like the following may be helpful as well , based on your requirements of course...
select postalCode = Case when patindex('%[0-9]%',postalcode) > 0
...
January 27, 2015 at 11:48 am
keshav_nitrkl (1/23/2015)
My report is having three fields : NAME || Level || ID .I have a single dataset and a filter to my dataset. The dataset filter should work...
January 26, 2015 at 11:47 am
our database it is on SQL Server 2012 sp1 but is a sql 2005 database in compatibility mode
Is this the case also on your copy of the environment?
January 26, 2015 at 11:04 am
declare sorder cursor for
select SRREFERENCE
--,@updateflag = SlaUpdate
from inserted
open sla
FETCH NEXT FROM sla INTO @salesorder
WHILE @@FETCH_STATUS = 0
BEGIN
Would this cursor not only gather one row? (I assume you meant that...
January 23, 2015 at 2:52 pm
Good point on the results to text. I have the habit of throwing the results to grid, doing a click on the select all corner of the results tab, copying...
January 23, 2015 at 2:04 pm
Viewing 15 posts - 781 through 795 (of 1,241 total)