Viewing 15 posts - 12,031 through 12,045 (of 13,465 total)
that's actually a good question.
It kind of depends on your data...
I'm still playing with Jeff Moden's awesome example, but with the openrowset function, I think you need to know the...
September 4, 2008 at 5:27 am
here's just a couple of things that I see wrong with your on-the-fly code:
1. SET "@TblName = (your code) would return null if a full part tablename wasn't passed...
September 3, 2008 at 10:47 am
make sure your data fields are NVARCHAR, not plain old varchar.
after that, make sure when you are inserting the data that you specifically cast them as nvarchar...selecting a varchar into...
September 1, 2008 at 9:11 pm
it looks like you are just trying to make a single procedure return a variety of different values...sort of a do-all proc.
I would suggest getting rid of the case...
August 30, 2008 at 5:57 am
when you delete a file, regardless of the recycle bin, the file is still there, but the disk space it used is open for use by other programs...if you hurry...
August 29, 2008 at 9:59 am
this was a neat question; you could schedule the procedure I made belowto run every thirty minutes, and query the table WHORESULTS on demand:
[font="Courier New"]CREATE PROCEDURE PR_CAPTURESP_WHO
AS
BEGIN
SET NOCOUNT ON
IF NOT...
August 28, 2008 at 11:29 am
maybe a comma in the exisitng data is affecting the real data you are looking at...
Can you search the file for a pre-existing commas before you replace the tabs with...
August 28, 2008 at 8:56 am
well your example shows up just fine for me...
renamed the file to "Artists_mini.csv" ,as only one period is allowed to exist for a text server to see it:
selected...
August 28, 2008 at 8:46 am
thomas.lemesurier (8/28/2008)
August 28, 2008 at 5:29 am
here's my suggestion:
add a folder which contains all of your .csv files as a linked server.
a text linked server will show evert .txt file and every.csv file as a table...
so...
August 27, 2008 at 12:02 pm
not enough information I think...Can you post the full CREATE FUNCTION statement you are using?
I'm guessing from what you posted the "parameter" you are trying to pass is a tablename...
the...
August 26, 2008 at 7:24 pm
Rbarryyoung is exactly right...typically, the account used for running the SQL server service never logs into the domain, and so does not have permissions/cannot browse to a different machine on...
August 25, 2008 at 11:52 am
maybe you need to filter so you get JUST the parent records?
slight change by adding a WEHRE clause, and changing which Oid to select like this?:
[font="Courier New"]
SELECT
o.Oid,
x.employeeID,
o.changedate,
e.followupdate,
o.date
FROM...
August 25, 2008 at 11:07 am
it's just your INNER JOIN at the very end that is exluding the records you were looking for; simply change to this i think:
[font="Courier New"]
SELECT
x.Oid,
x.employeeID,
o.changedate,
e.followupdate,
o.date
FROM
(SELECT
...
August 25, 2008 at 10:15 am
aww too bad your on 2000; I found Jack's suggestion really interesting and slapped this together real quick and it gave me promising results:
[font="Courier New"]
SELECT
DB_NAME(database_id) AS dbname,
OBJECT_NAME(OBJECT_ID,database_id) AS tablename,
SUM(user_seeks) AS...
August 20, 2008 at 12:03 pm
Viewing 15 posts - 12,031 through 12,045 (of 13,465 total)