|
thanks buddy maybe sometimes you must look at it in a true point.I have done it.
Thnx.
a
|
|
|
|
|
You are welcome...
I Love SQL
|
|
|
|
|
zmskerem wrote: "*'";
Try a percent sign (%).
|
|
|
|
|
Database is Access, not SQL and condition % always return null value.
Instead of % is used *
I Love SQL
|
|
|
|
|
hi friend
you are right there is mistake in sql please correct it
right
string strSQL = "select FilmName from films where FilmName like '" & cmbContent.Text & "%'" ;
wrong this is your
"select FilmName from films where FilmName like" + "'" + cmbContent.Text + "*'";
|
|
|
|
|
rohitsrivastava wrote: right
string strSQL = "select FilmName from films where FilmName like '" & cmbContent.Text & "%'" ;
false
_________________
rohitsrivastava wrote: wrong this is your
"select FilmName from films where FilmName like" + "'" + cmbContent.Text + "*'";
true
I Love SQL
|
|
|
|
|
|
Hi there .
I have a problem with SqlServer 2005 Log file .
I have an application and i want to attach my database to SqlServer , I did it by SqlConnection and ConnectionString ,in many times it gives me an error.
I know that when we use AttachDbFilename property in Connection for attach DB we don't need database log file, But most of times it gives me this error:
"Unable to open physical file 'filpath_log.LDF'. Operation system error 5: "5(error not found)".<br />
Could not open new database 'DbName'. CREATE DATABASE is aborted.<br />
Cannot attach the file 'FilPath.mdf' as database 'DbName'.<br />
File activation failure. The physical file name 'filpath_log.LDF' may be incorrect.<br />
The log cannot be rebuilt when the primary file is read-only.'
I wonder to say sometimes attachment works but sometimes not.
I already did this attachment process with SQLServer 2000 and it never gives me error .
DMASTER
|
|
|
|
|
What are you trying to do ?????
Load a log file via a connection ????
|
|
|
|
|
hello friend
where u get the back of data base it is not saved full some thing is missing so again take back up and there is no error tell me how to creat database with sqlscript or enterprisemanager if u take backup of enterprisemanager is best this is the
step
(1) open Enterprisemanager
(2) right click on database name
(3) All Task
(4) Attach database
(5) MDF File database to attach (Browse the path)
(6) click mdf file and ok button
you have succesfully attach in the server database
then your problem is solve connection to database coding
have a nice day
|
|
|
|
|
i have a table with a tree organiz.
each record have a unic id and a parent id that refrenc to aanother id on this table. so each record have a parent or more
i want to find the fulll path of a record such as :
human/body/leg
i want to do it with a function in mysql;
every one can help me?
-- modified at 7:44 Sunday 9th September, 2007
sepel
|
|
|
|
|
Use Recursive function each time it add parent untill the parent is null.
Best Regards,
Chetan Patel
|
|
|
|
|
Hi
I am using a MySql 5.0 DB. am trying to implement a transaction inside a stored procedure which uses cursors. but the problem is the way the cursor closes it self. it throws an exception, i have written a handler for any sqlexception inside the procedure which simply rolls back, and because of the cursor , transaction gets rolled back without completing the task.
Has anybody ever worked on MySql with transactions. Please Help.
thanks
KSS
|
|
|
|
|
Hi,
the following stored procedure will work properly with transactions and cursors:
DELIMITER $$
DROP PROCEDURE IF EXISTS `testdb`.`TestCursorRollback` $$
CREATE PROCEDURE `testdb`.`TestCursorRollback` ()
BEGIN
declare n int;
DECLARE done INT DEFAULT 0;
declare cur1 cursor for select col1 from hotels.a;
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1;
start transaction;
open cur1;
repeat
fetch cur1 into n;
if not done then
insert into testdb.b(col1) values (n*10);
end if;
UNTIL done END REPEAT;
close cur1;
rollback; /* or commit*/
insert into testdb.b(col1) values(200);
END $$
DELIMITER ;
|
|
|
|
|
Hi,
Thanks for the reply but i was looking for another handler for the rollback part.
Like : Declare Exit handler for SQLEXCEPTION ROLLBACK;
I want my proc to roll back in case of any error. because once i find any error it will throw an exception to my application which can never rollback-ed
thanks
Siva
kss
|
|
|
|
|
How do i create a form that bind a one to many relationship data source in VB.NET 2005
|
|
|
|
|
can you give me some brief description about you problem
You have to use join for selecting the data and just assign dataset to the DataControl.
Best Regards,
Chetan Patel
|
|
|
|
|
i want to back up my data base automatically everyday at a given time ,can you tell me how to do it in sql server 2005.
|
|
|
|
|
Check out the BACKUP Command in sql server 2005 which is used to backup the entire database. If you want to Backup the DB periodically then create a procedure with the BACKUP command and schedule a job in the sql server agent that calls the Procedure periodically...
BACKUP DATABASE [DatabaseName] TO DISK = N'C:\BackUp\DB_BKUP_09_09_07'WITH DIFFERENTIAL , NOFORMAT, NOINIT, NAME = N'DatabaseName-Differential Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
hi
you must go to microsoft SQL Server Management Studio => choice Server object
right click on Backup device =>choice backup database => choice your database => and choice option to set information
|
|
|
|
|
hi
you can go to sql server agent ---> choice job right click and choice schedual ---> new schedual --> choice what you need
Rami Abdalhalim
|
|
|
|
|
How can I use SQL operation such as create database ,delete database ,update database, change password, add user.....
by write the code in visual c++.
Please give me the good link or article which support this issue.
Thanks
|
|
|
|
|
Your question is way to broad for a post, so I recommend looking around this site. As far as changing passwords, adding users, etc. that all depends on how your database tables are set up.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
READ SQL Server Books online or buy a book (if you can afford it).
|
|
|
|
|
hi guys
i have the followig query
select a.plhrs ,b.sthrs,a.mon
from
(select to_char(month,'Mon-yyyy') as mon,
sum(st) as plhrs from espcs.bud_mpl where empno='0541'
group by to_char(month,'Mon-yyyy'))a,
(select to_char(ddate,'Mon-yyyy') as mon2 , sum(sthrs) as sthrs
from espcs.manhrs where empno='0572' group by to_char(ddate,'Mon-yyyy')) b
where b.mon2 = a.mon
in this query i am getting sum values from both tables based on the months from
the table a,
but the problem is that it eliminates the records if it does not find the matching months from both tables, as i want that it shud show the month with a value of blan if it does not find the matching the matching months's records in the corresponding table,i want to use joins,,
i am new to oralce , can any body help me
thanks in advance
hello
|
|
|
|