[RSS - Pasarkode] Category : sql http://pasarkode.com/category-19-sql.html As a database, it is a software product whose primary function is to store and retrieve data as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). There are at least a dozen different editions of Microsoft SQL Server aimed at different audiences and for different workloads (ranging from small applications that store and retrieve data on the same computer, to millions of users and computers that access huge amounts of data from the Internet at the same time). Its primary query languages are T-SQL and ANSI SQL. en-us 2014 Pasarkode.com Tue, 07 Jul 2020 03:45:07 +0700 Tue, 07 Jul 2020 03:45:07 +0700 http://pasarkode.com/images/pasarkode.com.fb.png Pasarkode.com http://pasarkode.com/rss/sql.rss Copy Data From Other Table http://pasarkode.com/kode-347-copy-data-from-other-table.code if you want to copy some data to table from other table in SQL you can use this query : &nbsp; INSERT INTO newTable (col1, col2, col3) SELECT column1, column2, column3 FROM oldTable //or you can this, this sample I use to copy saldo from stock table INSERT INTO ... <![CDATA[INFORMATION_SCHEMA.TABLES ]]> Procedure For Search Name http://pasarkode.com/kode-225-procedure-for-search-name.code If you are a developer warehouse application, and user want to search customer name by first character of customer name, use this procedure to simplify your job: &nbsp; create procedure search @kunci as varchar(50) as select * from MS_Customer where ... SQL Server 2000 installation fails with "...previous program installation..." error message http://pasarkode.com/kode-222-sql-server-2000-installation-fails-with-previous-program-installation-error-message.code When you install SQL Server 2000, this error message may occur: A previous program installation created pending file operations on the installation machine. You must restart the computer before running setup. After the error message appears, the installation will not continue until you ... Solve (LSN) Error 9003 When Attach the Database SQL2000 http://pasarkode.com/kode-208-solve-(LSN)-error-9003-when-attach-the-database-sql2000.code If you have problem when attaching database like "Error 9003: The LSN (12:32:1) passed to log scan in database 'Database_Name' is invalid." to the sql server, you may try this step: STEP 1 : turn off your SQL server&nbsp; STEP 2 : remove LOG file STEP 3 : this code for attach single ... Looking for Date and Time Difference http://pasarkode.com/kode-206-Looking-for-Date-and-Time-Difference.code beberapa syntax di bawah ini bisa digunakan untuk mencari selisih antara dua obyek dalam SQL Server syntax mencari selisih tanggal: &nbsp; select datediff(tanggal1,tanggal2)syntax mencari selisih waktuselect timediff(waktu2,waktu2bisa juga menggunakan syntax berikut dalam field yang berformat ... Error 945 SQL Server 2008 http://pasarkode.com/kode-201-error-945-sql-server-2008.code SQL SERVER &ndash; FIX : Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details Kasus ini terjadi ketika saya mau akses database SQL server 2008 dimana database tetap dikenali dan tidak dalam status ... Enter removing Signs In Field (string) http://pasarkode.com/kode-192-Enter-removing-Signs-In-Field-(string).code Take an example, when in the program appear:Jl. Mazda No.1Jakarta UtaraWhen type the command select addresses from ms_customer it would appear:Jl. Mazda No.1 Jakarta UtaraStraight 1 line / row for the SQL statement format space / enter and other non-visual character will not be shown, but all the ... Deleting Log MSSQL Database http://pasarkode.com/kode-191-Deleting-Log-MSSQL-Database.code The more transactions, the greater the size of the database, the greater the size of the database means that many of the processes that have occurred, the whole process was well saved by the server in the LOG file. For most who frequent database Meadowsweet sometimes this can be a problem if the ... Restore and Backup Database MSSQL Using Query http://pasarkode.com/kode-190-restore-and-backup-database-mssql-using-query.code Database that has been in the full backup can be restored using 2 stages as below: Step 1: See the logical file name of the database backup file. RESTORE FILELISTONLY FROM DISK='D:\BackuFileName.BAK' Go Step 2 :Use the logical name in the database to be used in the second stage. Make Database ...