Where to find the syntax for parsing varbinary data in SQLserver?
Thanks
BillDefine "parsing".
What kind of data is in this varbinary content? (binary representations of
native text, files of known type...)
ML
http://milambda.blogspot.com/|||I assume that there's a general syntax to read the column's content.
In this case, it's text data.
thanks
Bill
"ML" <ML@.discussions.microsoft.com> wrote in message
news:54909221-5023-4CF2-A5EC-79FAAA07C907@.microsoft.com...
> Define "parsing".
> What kind of data is in this varbinary content? (binary representations of
> native text, files of known type...)
>
> ML
> --
> http://milambda.blogspot.com/|||If you're parsing a delimited string of character values stored as varbinary
,
maybe you should look at this function by Dejan Sarka:
http://solidqualitylearning.com/blo.../10/22/200.aspx
Of course, you'll have to change the datatype of the parameter and maybe
adapt the logic a bit.
ML
http://milambda.blogspot.com/
Showing posts with label syntax. Show all posts
Showing posts with label syntax. Show all posts
Wednesday, March 28, 2012
Parse A column containing SYntax
Has anyone tried to parse a column containing sql syntax to obtain the actual column names used in the syntax field. So if the field had acctno =1001 then it would return acctno.http://www.dbforums.com/showthread.php?t=1196943|||I haven't seen a script to do this, and it would be quite a challenge.
Friday, March 9, 2012
Parameters in Reporting Services - C# Syntax
I'm using code from microsoft's website and I'm getting the following error:
"The type or namespace name 'ParameterValue' could not be found (are you missing a using directive or an assembly reference?)"
What am I doing wrong here? I want to pass parameters to the .render method.
// Prepare report parameter.
ParameterValue[] parameters = new ParameterValue[3]; <-- error occurs on this line
parameters[0] = new ParameterValue();
parameters[0].Name = "EmpID";
parameters[0].Value = "38";
parameters[1] = new ParameterValue();
parameters[1].Name = "ReportMonth";
parameters[1].Value = "6"; // June
parameters[2] = new ParameterValue();
parameters[2].Name = "ReportYear";
parameters[2].Value = "2004";
i figured it out
i had to add ReportServer before ParameterValue
i.e. ReportServer.ParameterValue[] parameters = new ReportServer.ParameterValue[3];
"The type or namespace name 'ParameterValue' could not be found (are you missing a using directive or an assembly reference?)"
What am I doing wrong here? I want to pass parameters to the .render method.
// Prepare report parameter.
ParameterValue[] parameters = new ParameterValue[3]; <-- error occurs on this line
parameters[0] = new ParameterValue();
parameters[0].Name = "EmpID";
parameters[0].Value = "38";
parameters[1] = new ParameterValue();
parameters[1].Name = "ReportMonth";
parameters[1].Value = "6"; // June
parameters[2] = new ParameterValue();
parameters[2].Name = "ReportYear";
parameters[2].Value = "2004";
i figured it out
i had to add ReportServer before ParameterValue
i.e. ReportServer.ParameterValue[] parameters = new ReportServer.ParameterValue[3];
Saturday, February 25, 2012
Parameters
Isn't it possible to have parameters in the top of af statement, I get
syntax error if I try this and the parameter is there.
select top @.top etc.
JackTSQL doesn't support using a variable in a TOP statement, so reporting
services can't use a parameter in this case. The only way I know to do
this in TSQL is build the SQL as a string, and run it with
sp_executesql or EXEC.
syntax error if I try this and the parameter is there.
select top @.top etc.
JackTSQL doesn't support using a variable in a TOP statement, so reporting
services can't use a parameter in this case. The only way I know to do
this in TSQL is build the SQL as a string, and run it with
sp_executesql or EXEC.
Subscribe to:
Posts (Atom)