I just want to print simple labels. There will be two parameters; the starting number and the ending number. I just want to print out labels starting with the first parameter and continue printing, incrementing by 1, until the second parameter value is reached.
Mike
The parameter mentioned to export to a PDF is not passed to the database (SQL Server 2000). It is passed into the report through code and not forwarded on to the database.
The min and max parameters although, are two distinct values that are passed to the report and then in turn passed to the...
Scenario
Parameters passed to report are min = 1 and max = 4
Rec 1: Cust A
Rec 2: Cust A
Rec 3: Cust B
Rec 4: Cust A
This is not usually going to occur and for printing it isn’t a problem. The reports need to be printed in the original order entered. Not sorted by customer.
Problem : I...
That is a good idea. Try the simple things first. I will do some playing around with the indexes. Much better than reprogramming to do a bulk insert. I will let you know if it makes a difference.
Mike
No, there are no trigers and yes, the prinmary key is clustered. Would it be better if it wasn't clustered or had a different PK? The primary key is (tinyint, int, int, smallint). Should I have an identity column as the PK and make the primary a secondary key? I would have no use for an identity...
I have a stored procedure that inserts records into a table that is about 600,000 records in size at this point. This stored procedure is called recursively from a middleware application that reads a text file and calls this procedure for every line of the file that has valid information. At...
Say I want '[Nitrate ppm]/[Sample Wt]' from the table this time or maybe just '[Ammonium]' the next time. The possible ways I might need information or values from this table varies greatly. I want to pass in '[Nitrate ppm]/[Sample Wt]' or '[Ammonium ppm]' into @var1 and then query based on this...
Can anyone tell me why the value of @var2 can be used to execute a query but the value of @var1 cannot? Is there anyway to force sql server 2000 to recognize the value in @var1 instead of trying to read this as a column name?
declare @var1 varchar(50)
declare @var2 int
select @var1 from...
Yes I did try the GO after the adding of the column. The temp table then goes out of scope and the insert call will not compile. Creating the table with ## then calling GO might work but I didn't want the scope of the table to be global.
Mike
Can anyone tell me why the first works in a sp and the second doesn't?
1)
CREATE PROCEDURE w_z_testing AS
create table #t_table (f1 int, f2 int)
alter table #t_table add f3 int
insert into #t_table (f1, f2) values (2,3)
select * from #t_table
GO
RETURNS:
(1 row(s) affected)
f1 f2...
I do not know if it is possible to do. I’m using version 9. I would like to lock the page header and footer sizes on a report template so any reports made from that template will look consistent. I do not want other report creators to be able to increase or decrease the height of the sections...
Karl, yes I do have tables you said I needed. The samples table, results table, and a test details table. I didn't have any luck with the ##tempTable. It kind of worked but not for what I needed. I did this simplified code to do what I needed though.
CREATE PROCEDURE testdynamtable AS
set...
To answer Karl. I work in a laboratory environment. If I designed the database to hold all the possible test results for a sample I would have tables with 500 + columns with only 5 – 20 or so of those fields with actual values. It seems better to me to store the values in table with a reference...
I have tried this and it does work for creating the table, apparently. The problem I run into now is inserting data into the field and returning the temp table.
neither
set @FinalSQL = ('insert into #tmptable values(888)')
exec(@FinalSQL)
or
insert into #tmptable values(888)
works.
Invalid...
CREATE PROCEDURE testdynamtable
AS
set nocount on
declare @tmpcolname varchar(20)
set @tmpcolname = 'col1'
create table #tmptable (@tmpcolname int)
^
|
How do I do this?
GO
Mike
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.