Viewing 15 posts - 2,161 through 2,175 (of 2,452 total)
Performace Guard (Shehap) (10/15/2011)
create table #temptable (F1 int, [F2.1] varchar (20), [F2.2] varchar (20), [F2.3] varchar (20))
insert into #temptable (F1 )
select...
October 15, 2011 at 12:35 pm
I am going to assume this is "homework"...this question or variations of it, appear on SSC regularly.
so...food for thought...hope this gives you some ideas.
-- create some data
with produce (id,fruit, varieties)
as...
October 15, 2011 at 9:43 am
Ninja's_RGR'us (10/13/2011)
Now if you're talking about ADP then I absoletely agree that this makes a powerful mix of front end / back end.
plus 1
also DSNless MDE's to preconfigured SQL...
October 13, 2011 at 2:32 pm
I think this may help in providing you with a tried and tested solution....the code below is based on the data you initially provided.
I have had to rip/strip and create...
October 11, 2011 at 2:39 pm
does the following help...courtesy of Lynn Pettis
https://www.sqlservercentral.com/blogs/lynnpettis/archive/2009/03/25/some-common-date-routines.aspx
declare @ThisDate datetime;
set @ThisDate = getdate();
select dateadd(dd, datediff(dd, 0, @ThisDate), 0) -- Beginning of this day
select dateadd(dd, datediff(dd, 0,...
October 11, 2011 at 9:53 am
Tom Bakerman (10/10/2011)
You've all been a great help. Keep up the good work. Thanks.
Tom
Tom..what code have you got so far...can you post please...maybe it will help.
October 10, 2011 at 1:32 pm
Tom Bakerman (10/10/2011)
The result for the current month is MTD (GETDATE()). The count for previous months is for...
October 10, 2011 at 12:38 pm
J Livingston SQL (10/9/2011)
pls note ...date range vailidity needs scrutiny
comments in code
USE [tempdb] --- a safe place
GO
--== condtionally drop table...
October 10, 2011 at 12:47 am
different approach....may be give you some ideas
pls note ...date range vailidity needs scrutiny
comments in code
USE [tempdb] --- a safe place
GO
--== condtionally drop table for retesting in...
October 9, 2011 at 1:45 pm
subasuga (10/8/2011)
I have a table whose number of rows is determined only at run time. The dataset is divided into group of 5 (represented by sampleNo)
Like this...
1......AAAA......Sample1
2......SSSS.......Sample1
3......HHHH.......Sample1
4......UUUU.......Sample1
5......IIIIIII.......Sample1
6......BBBB.......Sample2
.........
10.....XXXX......Sample2
11......CCCC.......Sample3
............
15.......DDDD.......Sample3
.......
n........TTTT........SampleN
I dont know how...
October 9, 2011 at 5:23 am
Jeff Moden (10/4/2011)
October 4, 2011 at 12:15 pm
SELECT COL1,COL2... convert(varchar,YOUR_DATE_COLUMN, 3)
October 4, 2011 at 5:43 am
Jeff Moden (10/3/2011)
Maybe I should change the question a bit... are any of you using the HierarchyID data type?
No.
maybe useful in the future when dealing with 3rd pty dbs.
October 3, 2011 at 11:25 pm
Sean Lange (9/29/2011)
ghanshyam.kundu (9/29/2011)
you should have deptid in emp table as...
October 3, 2011 at 12:42 pm
hopefully this will give you some ideas.
pls post back if not undestood.
---=== use tempdb...nice safe place
USE [tempdb]
GO
---=== drop tables if they already exist....makes it easier for reruns in SSMS
IF ...
October 3, 2011 at 12:34 pm
Viewing 15 posts - 2,161 through 2,175 (of 2,452 total)