|
I don't believe this is possible in any direct sort of way. About the best I can think of would be some kludge useing an extended SP with a C dll called by that XSp that in turn invokes the Java runtime with the desired paramters or a com dll with a com-java bridge...or maybe a kludge based on xp_cmdshell.. not fun, and likely fragile.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
anyone know how to Syncronised MySql with SQL SERVER
|
|
|
|
|
hi
Usually in Sql Database date is stored in the format of mm:dd:yyyy. I want to store it as dd:mm:yyyy. i want to make it as a permanent setting.
shelly
|
|
|
|
|
|
hi,
i want to remove identity check for a table, i used SET IDENTITY_INSERT ON but it works just for one transaction,how can i disable identity forever
(i need the Transaction for this operation)
|
|
|
|
|
Alter the table, change the identity field to an ordinary integer (remove the identity attribute). Of course you will then be responsible for computing the value for new inserts... You could set a Unique constraint on the field to insure that it still rejects duplicates.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
do you receiving error massage?
|
|
|
|
|
i'v been with crystal report last 4 years ,crystal report 8.5 version still stable than crystal report 10 version,i've scene few things that crystal report can fail
1.) once you create or call a crystal report your are not allow to change the order of columns in table that you refer for crystal report,you can add columns to table but always below other columns,cant replace the order.
note :- if you done those things you have to create or call reports again
|
|
|
|
|
Hi for all,
I'm using vs.net 2002 + sql server 2000 desktop engine
and i created an asp.net web application project and i tried to open the connection but i received an error that i can't open the connection :
(Server Error in '/MyWebPage' Application.
Login failed for user 'SMART\ASPNET')
pls anyone know how to solve this problem ?
thanks
|
|
|
|
|
Asp.Net (development or production box) does not run in the same security as you do. It most likely does not have rights to the database. Create a SQL login with the correct rights on the SQL Server and update your connection string.
|
|
|
|
|
thanks for your reply,
but how can i change my logon cuz i don't have any tool for the sql server ?
its sqlserver desktop engine without a tools
thanks again for your replay
|
|
|
|
|
You will have to access via TSQL if you don't have Enterprise Manager.
See:
sp_addlogin
sp_addUser
sp_grantdbaccess
on MSDN as a starting point.
|
|
|
|
|
thanks alot for your info
i installed sql server 2000 enterprise edition but not the server but just the client tools like enterprise manager
cuz the enterprise edition not compatible with my platform
i received a message from the installer that is not compatible with my platform, i use windows xp sp2, and i used the enterprise manager and its a greatful tool and i resolved my problem.
tnanks again
|
|
|
|
|
Hi
I have 3 tables
Product(productID , productName , styleID , artistID )
, Artist(artistID , artistName )
, Style(styleID , styleName ) and relationShips :
Style 1 ---> N Product
Artist 1 ---> N Product
and this Command :
oleDbCommand = new OleDbCommand (
"select Product.productName , Artist.artistName , Style.styleName from ( Product inner join Artist on Product.artistID = Artist.artistID inner join Style on Product.styleID = Style.styleID )where productID = @productID", oleDbConnection );
But I got error :
Syntax error (missing operator) in query expression 'Product.artistID = Artist.artistID inner join Style on Product.styleID = Style.styleID'.
|
|
|
|
|
Try this:
SELECT Product.productName, Artist.artistName, Style.styleName
FROM Product
INNER JOIN Artist on Product.artistID = Artist.artistID
INNER JOIN Style on Product.styleID = Style.styleID
WHERE productID = @productID
Note: The only difference is that I removed the brackets. With the brackets it was expecting a subquery which you don't use here.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
Oh i dont know what should i do
this doesnt work :
Colin Angus Mackay wrote:
oleDbCommand = new OleDbCommand ( "select Product.productID , Artist.artistName , Style.styleName from Product inner join Artist on Product.artistID = Artist.artistID inner join Style on Product.styleID = Style.styleID where productID = @productID", oleDbConnection );
oleDbCommand = new OleDbCommand ( "select Product.productID , Artist.artistName , Style.styleName from Product inner join Artist on Product.artistID = Artist.artistID inner join Style on Product.styleID = Style.styleID where productID = @productID", oleDbConnection );
But this works :
Colin Angus Mackay wrote:
oleDbCommand = new OleDbCommand ( "select Product.productID , Artist.artistName , from Product inner join Artist on Product.artistID = Artist.artistID where productID = @productID", oleDbConnection );
oleDbCommand = new OleDbCommand ( "select Product.productID , Artist.artistName , from Product inner join Artist on Product.artistID = Artist.artistID where productID = @productID", oleDbConnection );
|
|
|
|
|
The code you attribute to me is not my code. I always write SELECT, FROM, INNER JOIN, WHERE etc. in upper case. Also I never put a space before a comma, only after it.
The code you say that works has a syntax error in it. This is obviously not the code you are using. If you are going to take code from your application please copy and paste it properly rather than rewrite it.
Also, in what way does the first not work? The only difference between the two is that in the second the join to "Style" has been removed. Could it be that the Style table has no rows that join on to the Product table? If that is correct then, naturally, the result set will be empty.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
Hi
First
i didnt add "Colin Angus Mackay wrote:"
and dont know how it was added to my reply and i'm sorry.
Second
i got syntax error on first command and on first not
|
|
|
|
|
Hi
First
i didnt add "Colin Angus Mackay wrote:"
and dont know how it was added to my reply and i'm sorry.
Second
i got syntax error on first command and on second not
|
|
|
|
|
WDI wrote:
dont know how it was added to my reply and i'm sorry.
Okay, fair enough then.
WDI wrote:
i got syntax error on first command and on second not
Hmmm.... There is an additional comma before the FROM on the second command. So I can only assume that it wasn't copied and pasted from visual studio properly.
What is the exact error? It is a bit vague saying "I got a syntax error" without actually seeing the error message. SQL Server contains almost 4000 error messages that help point to the cause of the error. This is useful information and should not be discarded while searching for a solution.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
i 've Pasted from code :
Has not Error
oleDbCommand = new OleDbCommand ( "select Product.productID , Artist.artistName from Product inner join Artist on Product.artistID = Artist.artistID where productID = @productID", oleDbConnection );
--------------------------------------------------------------------------------------
Has Error :
oleDbCommand = new OleDbCommand ( "select Product.productID , Artist.artistName , Style.styleName from Product inner join Artist on Product.artistID = Artist.artistID inner join Style on Product.styleID = Style.styleID where productID = @productID", oleDbConnection );
Error :
Syntax error (missing operator) in query expression 'Product.artistID = Artist.artistID inner join Style on Product.styleID = Style.styleID'.
|
|
|
|
|
|
I'm sure . i got error when i have 2 inner join cuz i test each of theme seperatly.
|
|
|
|
|
Hi,
I am reviewing existing code and stumbled across something that, to me - and I'm new to ADO.NET, seems very awkward. A DataSet is filled using a OleDbDataAdapter. The weird thing is that the command does not affect any records at all, intentionally. It looks something like "SELECT ... WHERE 0 = 1".
The comment describing the method containing this code says "Retrieve an empty dataset that contains the database structure". DataSet Quick Whatch reports the dataset to be empty after the fill.
Does this SELECT statement really do any good?
Thanks for comments, ideas or advise!
|
|
|
|
|
I don't use datasets because they tend to encourage the data layer to get too close to the presentation layer (not good design). The SELECT statement returns, as you've already noticed, an empty set. But that isn't to say that nothing at all was returned. I'm guessing that the empty DataSet is subsequently used to look at the data schema without actually needing to get any data. Obviously, it would be wasteful to get data that isn't going to be used.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|