|
Very constructive thanks.
Humble Programmer
|
|
|
|
|
Hi All,
We are trying to run the following bdbackup command, on the command line from one of our virtual machines:
dbbackup -y -c "uid=xxx;pwd=xxx;dsn=DSN NAME" C:\xxx\Applications\xxx\Backup
only we are recieving the following error message:
"Parse error: DSN 'DSN NAME' does not exist"
The DSN is setup as a System DSN, which is what we are wanting the dbbackup to look at. The backup does work however when we set the DSN up as a User DSN.
Is there a way we can get the DBbackup to look at the System DSN instead of the User DSN?
Thank you,
Mel
|
|
|
|
|
i m trying to upload my sql database . but can't access the remote server.
naveen
modified on Friday, September 24, 2010 7:38 AM
|
|
|
|
|
Psssst....
Wrong forum!!
Quick, otherwise they'll set the dogs on you!!
"Benjamin is nobody's friend. If Benjamin were an ice cream flavor, he'd be pralines and dick." ~ Garth Algar
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair
|
|
|
|
|
Too late.
Here, JSOP... here, JSOP... good boy.
Sic 'em.
L u n a t i c F r i n g e
|
|
|
|
|
I haven't seen it. Ask Bob.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
|
|
|
|
|
naveensharma from Chandigarh wrote: can't access the remote server.
I hate it when that happens -- or worse, if the remote server hands you the DVD remote, when you wanted the one for the TV.
Peel me a grape!
|
|
|
|
|
Try harder or you'll lose your job, alternatively hand the job over to a trained professional.
Two heads are better than one.
|
|
|
|
|
Norm .net wrote: hand the job over to a trained professional
They're training vilage idiots now?
[edit]
Someoen gave you a onesee for that. Have a 5 instead.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
modified on Friday, September 24, 2010 7:24 AM
|
|
|
|
|
naveensharma from Chandigarh
You forgot to add your full address and phone number to your moniker. Optionally, you could add your bio. Makes the forums look really pretty.
|
|
|
|
|
I dont know.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Maybe there's a retard inhibitor in place...
EDIT -------
It's only fair to mention that my reply was added while this thread existed in the Lounge.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Friday, September 24, 2010 7:56 AM
|
|
|
|
|
You need to talk to your IT department and straighten out your security.
Also what do you mean by "upload" -- restore, attach?
|
|
|
|
|
Ah welcome to the correct forum. Your question however is still very obscure.
What do you mean by upload? Are you trying to deploy the database to s server, restore a backup, connect to an existing database what!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a column called bookedhalls, the value will be stored as Balaji-A,Balaji-C, i written select query as follows
Select * from function where bookedhalls like '%Balaji-A,Balaji-C,%
by using this i will get the row.
Suppose if i give '%Balaji-C,Balaji-A,%' i cannot get the row. How to get that row by using
Balaji-C,Balaji-A. Anybody knows please reply.
modified on Friday, September 24, 2010 6:17 AM
|
|
|
|
|
Your data model is fundamentally wrong, you should almost never be storing multiple values in one column with some delimiter (such as a comma). This is especially true if you need to query based on one of those multiple values.
bookedhalls should be a separate table, referenced to the rest of that row using foreign key relationships, this would allow you to select based upon this join.
|
|
|
|
|
Actually i created table caolled function in that fun_start_date and fun_end_date and booked_halls collms is there. Suppose u conside one date it is booked for 2 floors (balaji-A, Balaji-B). User will select in forms.
so i can write like select * from function where fun_start_date = 'date' and fun_end_date = 'date' and booked_halls like '%BALAJI-A,BALAJI-B,%'
i will get the row. If there is no row means he can go for inserting. Here is Ok.
Suppose user if select like first Balaji_B then Balaji-A in coding i will get string as a BALAJI-B,BALAJI-A.
if i write like select * from function where fun_start_date = 'date' and fun_end_date = 'date' and booked_halls like '%BALAJI-B,BALAJI-A,%' i will not get the row . I should get that row. So nobody should not book for that floor. How to do this.
|
|
|
|
|
Did you actually read my response above? By fixing your data model, it fixes this issue.
|
|
|
|
|
As pointed out already, your table structure is not a good one, that is why you are finding it tricky to write this query. You should read up about database normalization.
If you are really stuck with this data structure and cannot change it then you will need to do something like:
select * from function where booked_halls like '%BALAJI_A%' and booked_halls like '%BALAJI_B%'
But really you should change the data model because what you have at the moment is wrong.
|
|
|
|
|
Do NOT ignore the advice you have been given. Just because David has given you a work around FIX YOUR DATA STRUCTURE. If you do not do this NOW you will be back here continiously asking how to get at your data.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I am facing an issue in Insert Trigger.
I have 2 tables. Whenever I insert into Table 1, I have written a trigger to insert into Table 2. There is a stored procedure to insert in to Table 1 and there is an After Insert Trigger to insert into Table 2. The table 2 has one primary key and one foreign key.
When there is a Primary Key constraint violation (Or Unique Key), I am able to catch the error in the stored procedure and I am able to display the same to the user.
But if there is a foreign key constraint violation, I am not able to catch the error "Foreign Key Violation". Instead I am getting an error called "UnCommittable transaction".
Is there any way to catch this Foreign Key Violation error and display it to the user?
Note: I have a "Try... Catch" block in the stored procedure. But I don't have it in the Insert Trigger.
Thanks and Regards,
Peri
modified on Friday, September 24, 2010 5:31 AM
|
|
|
|
|
I have an application which has two database connections with two different logical databases (with different DSNs). Can I work with the sane SQL_HANDLE_ENV for both the connections, or do I need to create a new SQL_HANDLE_ENV for every logical database? Please help me.
|
|
|
|
|
Hi all im using SqlServer2005.. I need to insert multiple rows into a existing table(db1) from other database(db2).. There are around 400 rows(15 columns) need to be inserted. Both db are having same tables. how can i do it..
Thanks...
modified on Wednesday, September 22, 2010 5:34 AM
|
|
|
|
|
Which database?
test-09 wrote: other database(db2)
Database/table?
|
|
|
|
|