|
Is there a log file or anything like that in which you can dig around at this more? Consult documentation with the third party .dll provider
|
|
|
|
|
Hi,
I am sure whether this is the right place to post this question. But it is to do with database.
I have a program coded in vc++6 and MS ACCESS as the database.The data connection is done using DAO.
Suppose I run this program on a computer that does not have microsoft office installed, will it still work? i.e. will it still be able to connect to the database?
If not, will installing the MICROSOFT JET ENGINE be sufficient?
Thanks,
Tara
Fortitudine Vinsinues!
|
|
|
|
|
Yes, the (free) Jet runtime, which automatically gets installed on many computers and can be repackaged into your installer, is sufficient for connections to the Access DB. Many programs do this.
|
|
|
|
|
Thanks a lot.
Fortitudine Vinsinues!
|
|
|
|
|
Hi,
How to write a query to get 5th highest salary.
Thanks in advance
|
|
|
|
|
Select *,sal From Emp X Where 5 =<br />
(<br />
Select Count(Distinct Sal) From Emp Where sal >=X.sal<br />
)
|
|
|
|
|
Hi!
In SQL 2005 you should use CTE and the new ranking functions; write
<br />
with EmpCTE ( EmpNo, ..., Sal, SalRank ) as (<br />
select EmpNo, ..., Sal, dense_rank() over ( order by Sal desc )<br />
)<br />
select *<br />
from EmpCTE<br />
where SalRank=5;<br />
Rainer Stropek
cubido business solutions gmbh
Email r.stropek@cubido.at
Visit my blog at http://www.cubido.at/Blog/tabid/176/BlogID/4/Default.aspx
|
|
|
|
|
select top 5 * from table order by salary desc
|
|
|
|
|
SELECT TOP 1 * FROM (SELECT TOP 5 salary FROM employees ORDER BY salary DESC) AS EMP ORDER BY salary ASC
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I have multiple tables that I'm pullng into a C# DataSet.
My first method was to run a query and merge the data I need into one table using the MySQL command.
But here's my problem. I have a shared field x_ID where in one Table A it is null and in Table B it is the primary.
For example:
I have
Table A
Customer_Purchase $5, $4, $3
Customer_ID 1, 2, null
Table B
Customer_ID 1, 2, 3, etc
Customer_Name ...
My return for Who purchased what would only have 2 rows and I'd rather have all three, even though one would have no name in it.
Thanks!
RABB17
|
|
|
|
|
You've posted this question before, and it's been answered. Please check your previous posting.
See here.[^]
|
|
|
|
|
Outer joining is the key:
SELECT b.Customer_ID, b.Customer_Name, a.Customer_Purchase FROM a LEFT JOIN b ON a.Customer_ID = b.Customer_ID
This way you get everything from {a} regardless of what is in {b}
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Thanks guys, that works perfectly!
RABB17
|
|
|
|
|
hi all
how r u? u guys might be fine. but i'm not fine in these days.
one bug is going to kill me.
porblem i s that i'm making aporject using asp.net with mysql.
i have made the project & uploaded on the server.
when i try to access my site some time pages run well but some times i founf a "LOST CONNECTION ERROR".
this bug does not come on the same page it can at any time.
plz somebody help me.
i tried to sound on net but not find any appropriate solution.
plz tell me if any one have faced the same problem & solved successfully
thanx
|
|
|
|
|
Hi,
I have written a store procedure in SQL SERVER 2000. It contains lot of transaction. Some times as data is not in proper form transaction gets rolled back so i want to write log file of the error msg that are generated.
How can i do it.
Praveen
|
|
|
|
|
You can write to files and all sorts of other places, but the easiest thing would be to write to a DB table. If you're just debugging, that shouldn't be a problem: just create a table called something like Log, and write to it every time there's a problem.
If you do this in production and there are a lot of problems, the table can fill quickly. It's probably not the best way to do it in a production environment unless you've got a process to clean it out regularly.
|
|
|
|
|
use dos commands to log your errors. These dos commands can be executed using xp_cmdshell procedure in SQL Server.
you can also write console applications and run these application using sql server's xp_cmdshell command
|
|
|
|
|
Hi:
Can anybody help me.
I want to export data from Filemaker to Sql Server.
Thanks in advance..!
Vikas Garg
Vikas Garg
|
|
|
|
|
Hi,
I have created a MS service that has to connect to my SQL server. But it never does. I use the exact same code that does the exact same thing that the service does, but it is in an application, and it works perfectly. The only difference that I see is the app is run by the user that is logged in but the service runs under SYSTEM. Here is the error the service is getting:
Error Message = ERROR [28000][Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'DomainName\SystemName'.
I connect to the ODBC by using: DSN = "DSN Name"
DSN is configured to use the windows account, I also tested it and it works fine.
I am not able to find any pointers, it works as an application, but not as a service? Any solution will be greatly appreciated.
Thanks.
|
|
|
|
|
You're having impersonation problems. When your service runs, it runs as a service account (probably the IUSR account if it's a web service). When the application runs, it runs as you, the logged-in user. You have access, the service account doesn't. Your DSN doesn't seem to specify a username or password.
You can do a couple of things:
1. Change the service to run as someone who does have access. If it's a web service this could have consequences on other web services running on the same machine.
2. Explicitly impersonate someone else in your connection string. Put the username and password of someone who does have access after the DSN param in the connection string.
I think there are other more complicated options.
s}
|
|
|
|
|
Hello every body,
I have a problem. I've just creating a database application that use the SQL server 2000 engine but I want, when deploying the application, not to install the MS SQL SErver 2000 on the user's machine. how can i do? please help! (sorry for my poor English)
|
|
|
|
|
I don't have a clue what is it that you want....
hablas español?
|
|
|
|
|
It mean the user of my application not to know what database engine is using by the application and when installing it, not to use te MS SQL Server CD for installing the database engine!
|
|
|
|
|
Can you not just change the connection string to point to whatever remote server the database is hosted on?
|
|
|
|
|
Thank you. I'd already try the way you propose me and it works. But You know, if you are using a database application such as Sage Saari(Comptabilité) you don't know the database engine used with. that's what I want to do.
|
|
|
|