my array contains elements of integer type
how can i convert my array to long array
User Profile
Collapse
-
Type cast an array from int to long
-
you mean, the string should be in the form of "12,13,14,15,16 ";
(for clarification). And it will work? -
The best answer for this purpose, would be to use Team Viewer application hope it solves your problemLeave a comment:
-
thanks for your answer, if that set is passed to a Stored procedure, via a variable whose datatype is string in c#, and varchar(8000) in sql server
Code:string empl_vote_true = ",12,13,14,15,16"
Code:sql= "UPDATE tbl_emp SET " _ & "vote = true " _ & "WHERE pk_tbl IN('" & @empl_vote_true & "')
Leave a comment:
-
How to use comma separated value list in the where clause
i want to do something like this;
for-example;
Set vote = true for all rows in tbl_emp where pk_tbl is in the comma separated value list.
Code:update tbl_emp set vote=true where pk_tbl in @empl_vote_true
Is it possible, if so how? -
Datatype bit in the SQL server, so what datatype should i use in c#?
I am inserting a bit in sql server (which is 0 or 1)
where as in c# language i am using boolean for inserting that particular bit in database, will it work?
No activity results to display
Show More
Leave a comment: