Viewing 15 posts - 7,591 through 7,605 (of 9,641 total)
Gad Friedman (9/8/2008)
I am using unc path\\ppserver\c$\cn_pp\pp2000\data
the cn_pp is set as the shared folder.
again it will work only from the sql server but not from other workstations.
I notice you...
September 8, 2008 at 6:55 am
If you put all your actions in one procedure with if statements you also eliminate the benefit of having a cached execution plan.
September 5, 2008 at 8:52 pm
Can you post some source data so I can run the query myself and create a report to see how it works?
September 5, 2008 at 8:37 pm
I'd create an archive folder and then use a foreach loop using the for each file enumerator. Process the file and then move it to the archive folder using...
September 5, 2008 at 8:32 pm
How'd you map the variable to the parameter? Please post exactly.
September 5, 2008 at 8:27 pm
Here you go:
Set @filedate = Replace(Convert(varchar(10), getdate(), 101), '/', '') +
Replace(Convert(varchar(6), getdate(), 114), ':', '')
The first convert gets MMDDYYYY and the second gets HHMM
September 5, 2008 at 8:22 pm
Okay the premise remains the same, you'll just need to parse the file nam eto get the extension to use the right data flow task.
September 5, 2008 at 8:02 pm
Did you use "drive:\folder" in the linked server? If you did you probably want to share the folder and use a UNC path (\\server\share).
September 5, 2008 at 2:25 pm
Do you have a known number of file extensions or is it random? Are the files all in the same folder?
Here's one way if there is a known number...
September 5, 2008 at 1:31 pm
I'm just grasping at straws. Odds are the only solution is to run DBCC CHECKTABLE() with REPAIR_ALLOW_DATA_LOSS or restoring from a good backup. It just seems odd to...
September 5, 2008 at 11:57 am
How about running an update against that column setting the value correctly. I know it's okay now, but running the update can't hurt.
September 5, 2008 at 11:35 am
You need the indid in the query as well.
I would still restore a backup to a test server and drop and recreate the clustered index to see if that cleans...
September 5, 2008 at 8:57 am
What do you get when you run:
Select * from sysindexes where object_id = Object_Id("table name")
September 5, 2008 at 8:27 am
If there is a clustered index on the table then DBCC CheckTable should not return an error for indexid 0, so I don't think there is a clustered index on...
September 5, 2008 at 8:09 am
I'm guessing you are migrating from the DTS world to SSIS. Let me assure you that you will like SSIS better. There are some annoyances, but it is,...
September 5, 2008 at 8:03 am
Viewing 15 posts - 7,591 through 7,605 (of 9,641 total)