2011
Find Database Creation Date | Quickie
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
2011
Order BY Not Working in SQL Server Functions | Quickie
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
Ever created a function and needed to include the Order By clause. It would result in the following error being loaded:
The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
The problem is that to use, it requires a TOP clause or FOR XML. By if you specify TOP 100, you’ll only get the first 100 rows. You can specify a big number that you might think will never exceed. But what if you do? The best bet is to use TOP 100 PERCENT.
This will get you all the rows and works in Functions.
2011
ASP.Net | Read Values from Javascript
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
Today I started checking out some videos about Windows CardSpace and ASP.Net for logging in and I saw how he used javascript to get client side input and use it in ASP.Net in the C# code.
First you need to create a HiddenField on your webForm and name it TokenField (any name would actually do)
<asp:HiddenField ID=”TokenField” runat=”server” />
To set the Hidden Field value in JavaScript use the following code: Continue reading »
2010
SQL Server 2005 | Add days, months and years to GetDate()
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
To get the current date in Sql Server queries and stored procedures, you use the GetDate() method. But what about to add a day or two to the current date, or add a month or years? To do it, you use the following query:
Add One Day
SELECT DateAdd(dd, 1, GetDate())
Add One Month Continue reading »
2010
SQL Server | Convert Varchar to UniqueIdentifier
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
There are 2 ways to Convert a string to a UniqueIdentifier (GUID) in SQL Server:
SELECT CAST(’449141d9-86c9-449d-be2c-1f171b4f4567′ as UNIQUEIDENTIFIER)
SELECT CONVERT(UNIQUEIDENTIFIER, ’449141d9-86c9-449d-be2c-1f171b4f4567′)
2010
SQL Server | Remove Special Characters
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
I needed to remove all the special characters from a field in a particular table in SQL Server to be used for searching purposes. After searching (binging
)… I found the next SQL Server Function which did the trick.
This Function Removes any special character from the string value passed. All characters except 0-9, a-z and A-Z are all removed, whilst the remaining characters are returned back.
ALTER FUNCTION dbo.RemoveSpecialCharacters
(
@s VARCHAR(256)
)
RETURNS VARCHAR(256) WITH SCHEMABINDING
BEGIN
IF (@s is null)
RETURN null Continue reading »
2010
Error 29506 | SQL Server 2005 Management Studio Express
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
When i binged (yes I’m using bing
), i found the following fix:
- Search for Command Prompt in the Start Window (don’t press enter)
- Right click on the shortcut found and select ‘Run as Administrator’
- In the command prompt change the current directory to the folder where the SSMSEE installer is stored
- Enter the following command .SQLServer2005_SSMSEE_x64.msi if you are running Windows 7/Vista 64 bit
- Enter the following command .SQLServer2005_SSMSEE.msi if you are running Windows 7/Vista 32 bit
- Press enter to start the installation
Happy Sql Server Managementing
Resources: here
2010
SQL Server 2005 | Database won’t go Offline
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
I needed to copy a database from SQL Server 2005. To copy it, you need to put the database offline but sometimes it takes too long to go offline and even fails.
The problem might be that the database would still have active connections. Thus to solve this problem you need to: Continue reading »
2010
SQL Server 2005 | “Product level is insufficient”
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
The following error kept popping up when trying to import data from a flat file source of type CSV to be imported in a table in SQL Server:
The product level is insufficient for component source “filename.csv”
To solve this problem, you need to install the Service Pack 2 of SQL Server 2005 from this link.
If you find other solutions… please let me know
2010
Visual Studio | No source code available for the current location
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!
Whilst trying to debug a Stored Procedure, the following error prompted:
There is no source code available for the current location
First you have to make sure that the current user is part of the ‘sysadmin’ Server role (click here for how to).
- Next go to Visual Studio Continue reading »
Recent Posts
Favourite Links
Tags
Archives
- May 2012
- February 2012
- December 2011
- October 2011
- September 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- June 2010
- May 2010
- April 2010
- March 2010
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- September 2008
- August 2008
- June 2008
- May 2008
- March 2008
- February 2008
- November 2007
- September 2007
- July 2007
- June 2007
- May 2007
- February 2007
- January 2007
- November 2006
- October 2006
Categories
- Android
- Apple
- ASP.Net
- Blackberry OS
- CMS
- Creative Computing
- Crystal Reports
- Day to Day
- Deep Design Malta
- Design and Development
- Development Tools
- Games
- Google Analytics
- Google Gmail
- Internet Explorer
- iPhone/3G
- iPod Touch
- JavaScript
- JQuery
- Microsoft
- Microsoft SQL Server
- Microsoft Visual Studio
- MS Office
- My Blog
- NetBeans
- Off Topic
- Online Services
- Permissions
- Phones and Tablets Platforms
- Project NINE
- PSP NGP
- Quickie
- SEO
- Silverlight For WP7
- Sitefinity
- Sony
- Uncategorized
- Utilities
- VB .Net
- Windows 7
- Windows 8
- Windows Live
- Windows Mobile
- Windows Phone 7
- Windows Vista
- Wordpress
- WP Apps
- Yellow Pages







