|
Hi ..
thanks for all here ..
on my example .. I want to save the image of a PictureBox to the Sql server 2000 database ...
I know how cant save it from a file ...
but I want to know how save the PictureBoc's image ...
again .. any one will try
jooooo
|
|
|
|
|
Convert the Picture property to a byte array and save that.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks my friend >>
can you give me alink or the code of it ??
jooooo
|
|
|
|
|
Hey guys I have some reports in SQL Reporting Services that were running in under 1 minute a couple of days ago and now they are taking hours. Its not all reports just some and when I run the individual queries for the reports they each run in between 1 and 6 seconds. Even running them all together takes less than 1 minute in SQL. Nothing has changed on the machine to cause this any ideas on what the problem might be or even how to analyze what the problem might be?
Thanks,
Bryan
|
|
|
|
|
Try restarting the Report Server and see if it makes any difference.
Paul
|
|
|
|
|
No difference at all.
Thanks,
Bryan
|
|
|
|
|
Visual Studio Team System has a performance testing tool for SSRS reports.
If you don't have access to this, all I can suggest is analysing each element of your report to see where the bottleneck is. Are you doing some manipulation of the data in the report after it has been retrieved from the database that might be causing a problem?
Paul
|
|
|
|
|
The only manipulation that I am doing is in a table I am summing values for a total row. Do you know if Visual Studio Developer edition has those performance tools? How are they accessed? I am great at creating the reports...just ignorant when something like this goes wrong.
Thanks,
Bryan
|
|
|
|
|
This article[^] gives you some more information. It is only a feature in Team System though.
|
|
|
|
|
Bryan - run the Sql Profiler against your server to see what's going on. This[^] article details what to set up.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I know this q is very elementary but here it goes.
I'm trying to run a subquery on this table to get the name from ReportsTo Column
EmployeeID Name Hired reportsto
1 Ms. Davolio Nancy May 1 1992 2
2 Dr. Fuller Andrew Aug 14 1992 2
3 Ms. Leverling Janet Apr 1 1992 2
4 Mrs. Peacock Margaret May 3 1993 1
This query doesn't seem to work
Select Name, (select name from employees where employeeid = reportsto) as 'ReportsTo' from employees
Please advice
|
|
|
|
|
You were close. You need to reference the inital table in the subquery for it to work.
SELECT
Name,
(select name from employees where employeeid = e.reportsto) as 'ReportsTo'
from
employees e
Better set logic (should be faster on large tables):
SELECT
e1.Name,
e2.Name as ReportsTo
FROM
employees e1
LEFT JOIN
employees e2
ON (e1.reportsto = e2.employeeid)
|
|
|
|
|
Almost
Thanks Mike
|
|
|
|
|
Hi,
I have a table, userprofile(fname,lname,address,hobbies). Hobbies is multiple selection from the list box, which binds data at run time. I want to select multiple hobbies and insert it into one single row. I have a faint idea od using a for loop for this purpose. Can you please help me?
Regards,
Anuradha
|
|
|
|
|
What you should really do is normalise your db and have your tables like this
userprofile(UserID, fname,lname,address)
hobbies(UserID, Hobby)
|
|
|
|
|
First of all, thanks you for the prompt reply. I actually thought about this earlier- having a user table and a hobby table and another user_x_hobby table where I can insert the Userid against the HobbyId. But then my question was, what query I could run on this. I am new to .Net/SQL and trying to explore new possibilities.
Regards,
Anuradha
|
|
|
|
|
How do I use WebServices as a datasource for my reports? I see where you create a datasource there's an option for "xml". Has anyone used "WebService" to create a custom dataset data extension, and if so how do you do it?
|
|
|
|
|
|
hai to all,
Here i am trying to connect with the remote machine database.The db connection string has given in web.config file.(tried both with IP address and machine name for data source)
While i am debugging my application,it is giving an errore like
"sql server does not exist or access denied"
What is the solution to this problem???
Am i need to set any setting at any level???
give me sme solution.
kissy
|
|
|
|
|
Is there Database in the new machine ...... if so check whether u gave the correct user name and password to the DB
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
thanks for responding to my post.
Yes the remote machine have the db and i have checked for all the parameters in the connection string which are correct.
<add key="connstring" value="Data Source=104.131.2.91;initial catalog=batch;uid=bt1;pwd=bt201;persist security info=false">
still i am unable to connect to the database.
i am using vs2003 and sqlserver 2000
kissy
|
|
|
|
|
Kissy16 wrote: "sql server does not exist or access denied"
Remote Server May be down or the Sql Server service may be stopped...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
wat abt this sqlserver service???
here sql server for remote machine is not down,i am sure for this.
can u plz give me some solution???
thanks for ur answer
kissy
|
|
|
|
|
Kissy16 wrote: tried both with IP address and machine name for data source
If you are facing connectivity issues after ensuring that the SqlServer service is started, probably you might want to take a look at the following factors
1) I've noticed that the datasource taking params like ipaddress/SqlServer2000 (read it as ipaddress slash sqlserver2000) or
machinename/SqlServer2000 (assuming that in both cases you are having SqlServer 2000)
2) If you are using SqlServer2000 and if you have tried the above mentioned option and still experiencing connectivity issues, probably resetting protocols using "sql server client network utility", try disabling and re-enabling TCP/IP and Named Pipes.
-- modified at 8:00 Thursday 6th September, 2007
|
|
|
|
|
Suppose I have the following stored procedure
CREATE PROCEDURE dbo.GetContacts
AS
SELECT ContactID, ContactName FROM Contacts
GO
Then I can execute the stored procedure as follows:
EXEC dbo.GetContacts
How can I receive the returned results into a temporary or permanent table?
|
|
|
|