Exec this command for enable full text search, working with SQL Server 2008 and above version.
exec sp_fulltext_database enable
exec sp_fulltext_database enable
$(document).ready( function( ) {
$("textarea").each( function( i, el ) {
$(el).height( el.scrollHeight );
});
});
Example 4:
If you want to use jquery plugin then
<script src="Scripts/jquery.autosize.min.js" type="text/javascript"></script>
<script language="javascript">
$(function () {
$('#txt').autosize();
//$('#txt').autosize({ append: "\n" });
});
</script>
<form id="form1" runat="server">
<div>
<textarea id="txt"></textarea>
</div>
</form>
$
alias. for example $
. You'll still be able to
use the full function name jQuery
as well as the
new alias $j
in the rest of your
application. The new alias can be named anything you'd like: jq
, $J
, awesomeQuery
, etc.jQuery
when you do some work with jQuery, but the $
will have the meaning defined in the other
library. There is no need to relinquish the $
alias by calling jQuery.noConflict()
.<script src="<!—your jquery libraries -->"></script>
<script src="—your javascript libraries --"></script>
<script>
jQuery( document ).ready(
function() {
jQuery(
"div").hide();
});
// Use the $ variable as defined in javascript libraries
window.onload =
function() {
var
mainDiv = $(
"main");
};
</script>
$jq = jQuery.noConflict();
</script>
<script>
jQuery.noConflict();
(
function( $ ) {
// Your jQuery code here, using the $
})( jQuery );
</script>
jQuery(document).ready()
Function</script>
EXEC dbo.sp_configure ‘clr enabled’,1 RECONFIGURE WITH
create assembly SqlServerCLRProject from ‘c:SqlServerCLRProject.dll’ WITH PERMISSION_SET = SAFE
Register assembly in sql server
1. Copy dll in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn directory
2. create assembly assemblyname from ‘local folder path’ WITH PERMISSION_SET = SAFE
Or
Open sql server → Database → Programmability → Assemblies → New Assemblies → Browse assemblies path → press ok button
3. Enable CLR
4.
CREATE
PROCEDURE
CLRTestSPSql server Error
Change
the database compatibility level using following command.
For
SQL Server 2005:
EXEC sp_dbcmptlevel 'TestDB', 90
For
SQL Server 2008:
EXEC sp_dbcmptlevel 'TestDB', 100
“
TestDB”
Database Name
sp_configure 'clr enabled', 1 GO RECONFIGURE GO