|
Please try it with this query-string:
"exec StaffSearch_sel @OverrideSecurity,
@UserId, @SchoolYearId, @Name, @ContractorId, @SubcontractorId,
@SiteId, @OrganizationRelationshipIds, @RoleTypeIds,
@StaffMemberNeedsAllRoles, @TotalRows out"
^^^^^^^^^^
|
|
|
|
|
Hi All,
I have an SSRS report when we export it to excel, it is exporting in 4 different tabs rather in one tab, I want it to be exported to one excel tab.
I have set the Disabled property in Page break of both the groups that exists to =IIF(Globals!RenderFormat.Name = "CSV" OR Globals!RenderFormat.Name = "EXCELOPENXML" OR Globals!RenderFormat.Name = "EXCEL", true, false), in report preview it is displaying correctly and generating the excel with only one sheet, but unfortunately when I try this in report viewer, it is displaying the following error
"A data source instance has not been supplied for the data source 'DataSet1'." Actually when I investigated it looks like it is missing the parameters, because the reports parameters are generated from the report dynamically some how they are not getting generated.
It runs perfectly in the report preview why isn't getting generated when I run from report viewer I am not understanding.
Can anybody please help me in this regard? I need some help any link, suggestion or code snippet any help would be really helpful.
Thanks in advance.
"There is enough hatred in the world, lets spread love compassion and affection."
modified 6-Apr-15 21:26pm.
|
|
|
|
|
i have two tables with same schema. i have to check table1 for any updates and insert the updates or the entire row into table2, only the most recently updated row.
so basically, table2 has the unique values from table1; for the duplicate entries in table1, there is only the most recent entry in table2.
i have tried to get the most recently updated id from table1:
SELECT distinct id
FROM table1 order by time_date desc limit 1;
now i need to use this id to get the other columns from table1 and insert the row with that id, into table2.
and i have to do this for all the entries in table1.
i have to update the row in table2 if it already exists, else insert new row. i check for recent record based on the date column, time_date.
both the tables have same schema.
any help would be great.!
thank you.
|
|
|
|
|
|
I'm in the process of gathering data for a form
I have 3 tables
1. CompletedOrders
2. BillingAddress
3, Shipping Address
So it works in SQL Manager when I model it, but not in code, asp.net
I just get nothing.
In sql manager, the sa doesn't light up pink, and shows like an error, but doesn't complain.
DECLARE @CompletedOrderID INT;
SET @CompletedOrderID = 3;
DECLARE @CA_ID INT, @BA_ID INT, @SA_ID INT, @CIP_ID INT, @CC_ID INT;
SET @CA_ID = (SELECT CA_ID FROM COMPLETEDORDERS WHERE CompletedOrderID = @CompletedOrderID);
SET @BA_ID = (SELECT BA_ID FROM COMPLETEDORDERS WHERE CompletedOrderID = @CompletedOrderID);
SET @SA_ID = (SELECT SA_ID FROM COMPLETEDORDERS WHERE CompletedOrderID = @CompletedOrderID);
SET @CIP_ID = (SELECT CIP_ID FROM COMPLETEDORDERS WHERE CompletedOrderID = @CompletedOrderID);
SET @CC_ID = (SELECT CC_ID FROM COMPLETEDORDERS WHERE CompletedOrderID = @CompletedOrderID);
SELECT
co.CompletedOrderID
, ba.Attention
, ba.CompanyName
, ba.StreetAddress1
, ba.StreetAddress2
, ba.City
, ba.StateCode
, ba.PostalCode
, ba.CountryCode
, ba.Phone
, sa.Attention
, sa.CompanyName
, sa.StreetAddress1
, sa.StreetAddress2
, sa.City
, sa.StateCode
, sa.PostalCode
, sa.CountryCode
, sa.Phone
FROM COMPLETEDORDERS co
LEFT JOIN CUSTOMER_BILLING_ADDRESS ba ON co.BA_ID = @BA_ID
LEFT JOIN CUSTOMER_SHIPPING_ADDRESS sa ON co.SA_ID = @SA_ID
WHERE co.CompletedOrderID = @CompletedOrderID
|
|
|
|
|
How dumb of me, I set the pointer to ByVal instead of ByRef, wiping out the results.
Time to go home I think
|
|
|
|
|
Those JOIN s don't look right. Try:
FROM
COMPLETEDORDERS co
LEFT JOIN CUSTOMER_BILLING_ADDRESS ba ON co.BA_ID = ba.BA_ID
LEFT JOIN CUSTOMER_SHIPPING_ADDRESS sa ON co.SA_ID = sa.SA_ID
You've also got five queries to select a single column from the same record. You could replace that with a single SELECT :
SELECT
@CA_ID = CA_ID,
@BA_ID = BA_ID,
@SA_ID = SA_ID,
@CIP_ID = CIP_ID,
@CC_ID = CC_ID
FROM
COMPLETEDORDERS
WHERE
CompletedOrderID = @CompletedOrderID
;
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I'll try it today or tomorrow, didn't know about the Select and set being able to condense it like that.
Thanks!
|
|
|
|
|
Friends,I am working on a project....and in that project i have to take scanned image of finger with the help of fingerprint scanner.....and this image will be used as a password to log in the site.....so plzzzz..tell me how to store images in database..and how can i check the scanned image of finger of user with other scanned images
|
|
|
|
|
To store an image you will need a parameterized query, but that won't help you with what you are trying to do.
|
|
|
|
|
its web based project....like u can say...whenever we want to login on facebook,gmail,etc.we have to type our alphanumeric password....but i want user to scan his/her fingerprint..and then the fingerprint will be matched(as a password)......so my main aim is to provide more security to users..
|
|
|
|
|
Yes, but I very much doubt that comparing images will work. You'll need to read up on fingerprint matching and such. You're probably better off buying something that will do it for you.
And besides, did your users ask you to do this? I know I wouldn't use a site that did that.
|
|
|
|
|
ook...let me tell u...am a student and its final project which i have to submit...yeah..this project is having wide applications in banking,industries,etc.......
basically i will interface fingerprint scanner with the server.....
|
|
|
|
|
vinay dahiya wrote: i will interface fingerprint scanner with the server. So when your user wants to logon from home, where exactly is he supposed to place his finger?
|
|
|
|
|
the user have to put his finger on the fingerprint scanner.....
|
|
|
|
|
And how will he do that if the scanner is connected to the server, and the user is at home?
|
|
|
|
|
ook....as i have told u its a project...and it has wide variety of applications in industries and MNCs...........and yeah i just want to show that this can be implemented.....
and yeah the finger print scanner will be with the user(as in case of dell laptops..there is a fingerprint scanner)...and then with the help of that scanner ..scanned image can be given to the server....(and i think this can be done with the help of socket programming)...
|
|
|
|
|
Yes, and there's a reason why they all use their own security-systems, and an even better reason why most sites use a password.
There are existing examples for fingerprint-readers, and if you search you'd also find an SDK. It will work for existing applications, but I doubt that anything like FB or GMail would accept it as an alternative.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
lol....kid...its a project..and yeah i have used name of facebook and gmail as a example.....and i have already told...that i have to do interfacing of electronic with server.......
if u don't have knowledge about this..then don't reply...
|
|
|
|
|
vinay dahiya wrote: if u don't have knowledge about this..then don't reply.. Statements like this are considered abusive on this site. Please remove it.
|
|
|
|
|
he has also used statements like this......" bastard programmer from the hell"...
i think u should see that statement also...
|
|
|
|
|
That was a meme before the word meme existed. It is merely a reference to these[^] stories.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
That is a totally different statement; he is using it to make a comment about himself.
|
|
|
|
|
vinay dahiya wrote: lol....kid.. Thanks for the compliment
It is a request that comes rather often on this forum, usually from an academic circle. From a webapplication you will not have direct access to the users' hardware.
Good luck btw.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
but will u tell me..that can't i access the ports of pc and then i can take input from the port(using socket programming)..and then that input can be given to the server.......
|
|
|
|