Try to use truncate instead of delete to remove records from your table, it will remove records and reset identity fields to starting values.
Thanks
Try to use truncate instead of delete to remove records from your table, it will remove records and reset identity fields to starting values.
Thanks
I have a report that runs on a number of parameter date fields (coverted to string). At present, the report automatically defaults to MAX value of a date. The syntax for that particular element/dataset is
SELECT CONVERT(char(11), MAX(src_date)) AS src_date_cur
FROM tbl_src_date
What I am looking to acheive is that if I was to modify the parameter to allow the user to specifiy a date from that particular field (rather than default to MAX), how could I get the subsequent parameter boxes to requery automatically. The code I use for the other 5 parameter fields is;
SELECT CONVERT(char(11), MAX(src_date)) AS src_date_cur
, CONVERT(char(11), dateadd(mm,-1, MAX(src_date))) AS src_date_pre
FROM tbl_src_date
SELECT CONVERT(char(11), MAX(src_date)) AS src_date_cur
, CONVERT(char(11), dateadd(mm,-2, MAX(src_date))) AS src_date_pre2
FROM tbl_src_date
SELECT CONVERT(char(11), MAX(src_date)) AS src_date_cur
, CONVERT(char(11), dateadd(mm,-3, MAX(src_date))) AS src_date_pre3
FROM tbl_src_date
SELECT CONVERT(char(11), MAX(src_date)) AS src_date_cur
, CONVERT(char(11), dateadd(mm,-4, MAX(src_date))) AS src_date_pre4
FROM tbl_src_date
SELECT CONVERT(char(11), MAX(src_date)) AS src_date_cur
, CONVERT(char(11), dateadd(mm,-5, MAX(src_date))) AS src_date_pre5
FROM tbl_src_date
If it makes a difference I am using SS-RS 2005.
Regards
Make them source from a dataset which has a dependency on the Parameter. This will create a hierarchy, whereas the first parameter value (e.g. a datetime picker has to be selected first)HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
I have a question.
Can I hide columns or fields , when there are too many fields in the data set . I want to take all fields but hide some in preview tab.Please somebody help me on this.
Thanks
Sudha
You can set the Hidden property to true. you can do this at the column level, and it will not show up.
BobP