Under the Query menu / Current Connection Options, I do NOT have "no execute" checked. Further, the other queries that I run produce results in the Results pane.
Using Select @sql2, I get results . . . sort of. A blank header row, then NULL and "(1 row(s) affected)". Manna
tlbroadbent,
I find a Results tab in Query Analyzer, which is ordinarily where the output from my T-SQL queries ends up. I'm running SQL Server 7.00.623.
If I switch from Results in Text to Results in Grid, then the Messages display in a separate tab from the results. But I still find...
No, the script doesn't output an SQL statement. It doesn't output anything at all. I'm executing it via Query Analyzer. Is that the correct thing to do? I just paste the code in, parse it, and execute it. Manna
tlbroadbent,
This version doesn't appear to work for me, either. Nothing gets loaded into my target table, and the results pane doesn't show any activity. But it parses okay :-)
Maybe I'll just bite the bullet and list out all the fields. It can't be THAT time consuming, after all. Manna
tlbroadbent,
I'm finally back to the original project.
I've modified the script you offered to read as follows:
=======================
use DOL
go
declare @sql1 nvarchar(4000), @sql2 nvarchar(4000)
select @sql1=@sql1+c.name+', '
from syscolumns c inner join sysobjects o
on c.id=o.id
where...
Thanks, tlbroadbent and foxdev! I shared my difficulty with my husband over the weekend, and he and I worked out the solution to the part that I was "stuck" on. It was a "DBF" FoxPro cursor/file/free-table that I was trying to import into SQL Server. (Although I could have...
We have a database with a FoxPro 6.0 front end and a SQL Server 7.0 SP6 back end. I'm running a Fox prg script that gives me a cursor or a file. I can output the file in FoxPro, Excel, and other formats.
I need to import the data, which already has the correct field names and format, into...
It worked on the test database, but on the live database I encounter the following error message:
Server: Msg 273, Level 16, State 1, Line 3
Cannot insert a non-null value into a timestamp column. Use INSERT with a column list or with a default of NULL for the timestamp column.
Is there an...
I have two tables in my SQL Server 7.0 database that are identical in format. I want to use T-SQL to find certain rows from the first table and load them into the second table. How do I do that?
Manna
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.