Viewing 15 posts - 196 through 210 (of 240 total)
I can be wrong but I think dynamic SQL with the loop is the only way:
CREATE TABLE #Site (
site_id CHAR(2)
,location_id CHAR(4)
,[description] VARCHAR(100)
);
INSERT INTO #Site (site_id, location_id,...
August 10, 2012 at 9:53 am
tommyh (8/6/2012)
August 7, 2012 at 3:33 am
haiao2000 (8/6/2012)
Yes feed means files. I think location is probably be configurable. I would predict each client config differently.
Then another way is to implement this as a "File Management" solution.
1....
August 7, 2012 at 2:14 am
Not sure why your LEFT JOIN didn't work but just to illustrate the idea:
--This is a list of All location groups
CREATE TABLE #LocationGroups(
LocationGroup VARCHAR(20) PRIMARY KEY
);
INSERT INTO #LocationGroups(LocationGroup)
...
August 6, 2012 at 3:53 pm
dj1202 (8/6/2012)
August 6, 2012 at 1:37 pm
When you saying "feed" do you mean files? Does the loader loads from actual files located on the server or network path?
August 6, 2012 at 9:53 am
You posted your question in SQL Server Development forum and you asked for sql function...
What report are you talking about? If this is SSRS report the VB.Net also has DatePart...
August 2, 2012 at 7:58 am
CREATE TABLE #WeekTable(
YearCol INT
,WeekCol VARCHAR(9)
);
INSERT INTO #WeekTable (YearCol, WeekCol)
SELECT 2009, 'wk1' UNION ALL
SELECT 2009, 'wk31' UNION ALL
SELECT 2009, 'wk52' UNION ALL
SELECT 2010, 'wk1' UNION...
August 1, 2012 at 3:40 pm
One way is to use table.
Create table with 7 rows and 7 columns. Use odd columns and rows (1,3,5,7) as dividers set their width/height to the same value. Use...
July 30, 2012 at 3:25 pm
SanDroid (7/19/2012)
😛 Revert from a snapshot and Database Restore from a snapshot are two differant things covered by two differant BOL articles. 😛
What is the difference?
As far as I understand...
July 19, 2012 at 1:55 pm
I still haven't understood what you are trying to say. Can you come up with a better explanation of what you want to do?
(S)he probably runs your entire code and...
June 5, 2012 at 11:00 am
I don't think ROWTERMINATOR should be pipe '|'. It should be '\r' or '\n' or '\r\n'. The latter is default.
January 10, 2012 at 1:31 pm
^^ That is exactly what I thought but OP for some reason wanted to do it in the trigger.
March 4, 2011 at 3:30 pm
niteshrajgopal (3/2/2011)
hi again,even the original db has no pk:( what other options do I have?
1. Add IDENTITY column to the target table?
2. Forget trigger and update your column after whole...
March 4, 2011 at 3:17 pm
Viewing 15 posts - 196 through 210 (of 240 total)