Viewing 15 posts - 7,591 through 7,605 (of 9,643 total)
I had thought that in SQL Server 2005 the CLR was only .NET 2.0 compliant so that 3.5 assemblies will not work, thus no Linq availability. I could be...
September 8, 2008 at 7:33 am
There are several ways to do this in SQL and depend on if you are using a stored procedure or ad-hoc SQL. In a stored procedure I think the...
September 8, 2008 at 7:29 am
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
Viewing 15 posts - 7,591 through 7,605 (of 9,643 total)